qmk_firmware/keyboards/lfkeyboards/lfkpad/lfkpad.c

21 lines
380 B
C
Raw Normal View History

2020-02-05 02:41:19 +00:00
#include "quantum.h"
#include <avr/wdt.h>
2020-02-05 02:41:19 +00:00
void matrix_init_kb(void) {
matrix_init_user();
2020-02-05 02:41:19 +00:00
#ifdef WATCHDOG_ENABLE
// This is done after turning the layer LED red, if we're caught in a loop
// we should get a flashing red light
wdt_enable(WDTO_500MS);
#endif
}
2020-02-05 02:41:19 +00:00
void matrix_scan_kb(void) {
#ifdef WATCHDOG_ENABLE
wdt_reset();
#endif
2020-02-05 02:41:19 +00:00
matrix_scan_user();
}