2018-07-18 16:54:49 +00:00
|
|
|
#include "lfk65_hs.h"
|
2023-09-24 02:32:20 +00:00
|
|
|
#include <avr/wdt.h>
|
2018-07-18 16:54:49 +00:00
|
|
|
|
|
|
|
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
|
|
|
{
|
2022-09-03 05:50:44 +00:00
|
|
|
if (keycode == QK_BOOT) {
|
2018-07-18 16:54:49 +00:00
|
|
|
reset_keyboard_kb();
|
|
|
|
}
|
|
|
|
return process_record_user(keycode, record);
|
|
|
|
}
|
|
|
|
|
2023-01-20 16:21:17 +00:00
|
|
|
void reset_keyboard_kb(void){
|
2018-07-18 16:54:49 +00:00
|
|
|
#ifdef WATCHDOG_ENABLE
|
|
|
|
MCUSR = 0;
|
|
|
|
wdt_disable();
|
|
|
|
wdt_reset();
|
|
|
|
#endif
|
|
|
|
reset_keyboard();
|
|
|
|
}
|