2018-07-18 16:54:49 +00:00
|
|
|
#include <avr/sfr_defs.h>
|
|
|
|
#include <avr/timer_avr.h>
|
|
|
|
#include <avr/wdt.h>
|
|
|
|
#include "lfk65_hs.h"
|
|
|
|
|
|
|
|
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();
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
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();
|
|
|
|
}
|