#include <stdint.h>
#include <stdbool.h>
-#include <util/delay.h>
+#include "wait.h"
#include "matrix.h"
#include "bootloader.h"
#include "debug.h"
#include "action_layer.h"
#include "eeconfig.h"
#include "bootmagic.h"
+#include "hook.h"
+keymap_config_t keymap_config;
void bootmagic(void)
{
}
/* do scans in case of bounce */
- print("boogmagic scan: ... ");
+ print("bootmagic scan: ... ");
uint8_t scan = 100;
- while (scan--) { matrix_scan(); _delay_ms(10); }
+ while (scan--) { matrix_scan(); wait_ms(10); }
print("done.\n");
/* bootmagic skip */
bootloader_jump();
}
+ /* user-defined checks */
+ hook_bootmagic();
+
/* debug enable */
debug_config.raw = eeconfig_read_debug();
if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEBUG_ENABLE)) {