qmk_firmware/keyboards/lfkeyboards/lfk65_hs/lfk65_hs.c
2020-02-29 21:35:29 -08:00

22 lines
395 B
C

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