logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

lfkpad.c (361B)


  1. #include "quantum.h"
  2. #include <avr/wdt.h>
  3. void matrix_init_kb(void) {
  4. matrix_init_user();
  5. #ifdef WATCHDOG_ENABLE
  6. // This is done after turning the layer LED red, if we're caught in a loop
  7. // we should get a flashing red light
  8. wdt_enable(WDTO_500MS);
  9. #endif
  10. }
  11. void housekeeping_task_kb(void) {
  12. #ifdef WATCHDOG_ENABLE
  13. wdt_reset();
  14. #endif
  15. }