1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c

20 lines
360 B
C
Raw Normal View History

#include "lfk65_hs.h"
#include <avr/wdt.h>
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
{
if (keycode == QK_BOOT) {
reset_keyboard_kb();
}
return process_record_user(keycode, record);
}
void reset_keyboard_kb(void){
#ifdef WATCHDOG_ENABLE
MCUSR = 0;
wdt_disable();
wdt_reset();
#endif
reset_keyboard();
}