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