diff options
author | tmk <nobody@nowhere> | 2012-10-27 03:07:37 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-10-27 03:07:37 +0900 |
commit | 16a583d7fd057c3ebcb859db44f097fd8073ec49 (patch) | |
tree | c10f26cbf2e65b523cb1fa7e642c3d79b4873f13 /protocol | |
parent | 9389585d3d16319d5d739eef84f4ff11076235c1 (diff) | |
download | qmk_firmware-16a583d7fd057c3ebcb859db44f097fd8073ec49.tar.gz qmk_firmware-16a583d7fd057c3ebcb859db44f097fd8073ec49.zip |
Fix usage of debug flag
Diffstat (limited to 'protocol')
-rw-r--r-- | protocol/iwrap/main.c | 3 | ||||
-rw-r--r-- | protocol/lufa/lufa.c | 11 | ||||
-rw-r--r-- | protocol/pjrc/main.c | 27 | ||||
-rw-r--r-- | protocol/vusb/main.c | 4 |
4 files changed, 2 insertions, 43 deletions
diff --git a/protocol/iwrap/main.c b/protocol/iwrap/main.c index c11ff7ab95..05a67337fd 100644 --- a/protocol/iwrap/main.c +++ b/protocol/iwrap/main.c @@ -131,9 +131,6 @@ int main(void) //pullup_pins(); //set_prr(); - print_enable = true; - debug_enable = false; - #ifdef HOST_VUSB disable_vusb(); #endif diff --git a/protocol/lufa/lufa.c b/protocol/lufa/lufa.c index bff1f5e8b2..68f30dd162 100644 --- a/protocol/lufa/lufa.c +++ b/protocol/lufa/lufa.c @@ -461,19 +461,12 @@ int main(void) __attribute__ ((weak)); int main(void) { SetupHardware(); + keyboard_init(); + host_set_driver(&lufa_driver); sei(); - print_enable = true; - debug_enable = true; - debug_matrix = true; - debug_keyboard = true; - debug_mouse = true; - // TODO: can't print here debug("LUFA init\n"); - - keyboard_init(); - host_set_driver(&lufa_driver); while (1) { keyboard_task(); diff --git a/protocol/pjrc/main.c b/protocol/pjrc/main.c index e0f600fe7c..9f664bc432 100644 --- a/protocol/pjrc/main.c +++ b/protocol/pjrc/main.c @@ -57,33 +57,6 @@ int main(void) while (!usb_configured()) /* wait */ ; keyboard_init(); - matrix_scan(); - if (matrix_key_count() >= 3) { -#ifdef DEBUG_LED - for (int i = 0; i < 6; i++) { - DEBUG_LED_CONFIG; - DEBUG_LED_ON; - _delay_ms(500); - DEBUG_LED_OFF; - _delay_ms(500); - } -#else - _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); - bootloader_jump(); // not return - } - - host_set_driver(pjrc_driver()); while (1) { keyboard_task(); diff --git a/protocol/vusb/main.c b/protocol/vusb/main.c index e964a69a87..8e4a266e9b 100644 --- a/protocol/vusb/main.c +++ b/protocol/vusb/main.c @@ -53,10 +53,6 @@ int main(void) uart_init(UART_BAUD_RATE); #endif - debug_enable = true; - print_enable = true; - - debug("keyboard_init()\n"); keyboard_init(); host_set_driver(vusb_driver()); |