aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
authorLuiz Ribeiro <luizribeiro@gmail.com>2017-01-21 17:09:17 -0500
committerLuiz Ribeiro <luizribeiro@gmail.com>2017-01-21 17:18:05 -0500
commit9ce38cbccf073fccea6f7ee6492bf472a48852b8 (patch)
treec98d5fd54bd84b1c72338a72b06490270d8b50ac /tmk_core/common
parent461dfd44621ef31cabc08136d4714ca24ed651fa (diff)
downloadqmk_firmware-9ce38cbccf073fccea6f7ee6492bf472a48852b8.tar.gz
qmk_firmware-9ce38cbccf073fccea6f7ee6492bf472a48852b8.zip
Simplified and polished a bit the code changes on tmk_core
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/avr/bootloader.c6
-rw-r--r--tmk_core/common/avr/suspend.c2
-rw-r--r--tmk_core/common/command.c1
3 files changed, 5 insertions, 4 deletions
diff --git a/tmk_core/common/avr/bootloader.c b/tmk_core/common/avr/bootloader.c
index 98a24d178..34db8d0b0 100644
--- a/tmk_core/common/avr/bootloader.c
+++ b/tmk_core/common/avr/bootloader.c
@@ -90,8 +90,10 @@ void bootloader_jump(void) {
90 _delay_ms(5); 90 _delay_ms(5);
91 #endif 91 #endif
92 92
93 #ifdef EEPROM_BOOTLOADER_START 93 #ifdef BOOTLOADHID_BOOTLOADER
94 eeprom_write_byte((uint8_t *)EEPROM_BOOTLOADER_START, 0x00); 94 // force bootloadHID to stay in bootloader mode, so that it waits
95 // for a new firmware to be flashed
96 eeprom_write_byte((uint8_t *)1, 0x00);
95 #endif 97 #endif
96 98
97 // watchdog reset 99 // watchdog reset
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index 0e97892d9..0c81e8361 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -65,7 +65,6 @@ static uint8_t wdt_timeout = 0;
65 65
66static void power_down(uint8_t wdto) 66static void power_down(uint8_t wdto)
67{ 67{
68#ifndef __AVR_ATmega32A__
69#ifdef PROTOCOL_LUFA 68#ifdef PROTOCOL_LUFA
70 if (USB_DeviceState == DEVICE_STATE_Configured) return; 69 if (USB_DeviceState == DEVICE_STATE_Configured) return;
71#endif 70#endif
@@ -100,7 +99,6 @@ static void power_down(uint8_t wdto)
100 99
101 // Disable watchdog after sleep 100 // Disable watchdog after sleep
102 wdt_disable(); 101 wdt_disable();
103#endif
104} 102}
105#endif 103#endif
106 104
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c
index beba768ec..f79d5a257 100644
--- a/tmk_core/common/command.c
+++ b/tmk_core/common/command.c
@@ -236,6 +236,7 @@ static void print_status(void)
236 236
237 print_val_hex8(host_keyboard_leds()); 237 print_val_hex8(host_keyboard_leds());
238#ifndef PROTOCOL_VUSB 238#ifndef PROTOCOL_VUSB
239 // these aren't set on the V-USB protocol, so we just ignore them for now
239 print_val_hex8(keyboard_protocol); 240 print_val_hex8(keyboard_protocol);
240 print_val_hex8(keyboard_idle); 241 print_val_hex8(keyboard_idle);
241#endif 242#endif