mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 09:56:54 +06:00
24 lines
442 B
C
24 lines
442 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 == QK_BOOT) {
|
|
reset_keyboard_kb();
|
|
} else {
|
|
}
|
|
return process_record_user(keycode, record);
|
|
}
|
|
|
|
void reset_keyboard_kb(){
|
|
#ifdef WATCHDOG_ENABLE
|
|
MCUSR = 0;
|
|
wdt_disable();
|
|
wdt_reset();
|
|
#endif
|
|
reset_keyboard();
|
|
}
|