summaryrefslogtreecommitdiff
path: root/tmk.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-12-08 01:47:57 +0900
committertmk <nobody@nowhere>2010-12-08 01:57:55 +0900
commit51f17f02317700e64b3c1113fe230d78bac7fecd (patch)
treea040a624004cd3cec2d2fd122069554a4039b8e1 /tmk.c
parent66ece29b0e14534d57b680db47a5967d5264ca85 (diff)
add build option: NKRO_ENABLE(remove: USB_12KRO)
Diffstat (limited to 'tmk.c')
-rw-r--r--tmk.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tmk.c b/tmk.c
index f7042bd6fb..b4f76f5d4a 100644
--- a/tmk.c
+++ b/tmk.c
@@ -66,8 +66,7 @@ int main(void)
matrix_init();
matrix_scan();
- // bootloader comes up when any 4 or more keys are pressed at startup
- if (matrix_key_count() >= 4) {
+ if (matrix_key_count() >= 3) {
#ifdef DEBUG_LED
for (int i = 0; i < 6; i++) {
DEBUG_LED_CONFIG;
@@ -80,6 +79,13 @@ int main(void)
_delay_ms(5000);
#endif
print_enable = true;
+ debug_enable = true;
+ debug_matrix = true;
+ debug_keyboard = true;
+ debug_mouse = true;
+ print("debug enabled.\n");
+ }
+ if (matrix_key_count() >= 4) {
print("jump to bootloader...\n");
_delay_ms(1000);
jump_bootloader(); // not return