diff options
Diffstat (limited to 'tmk_core/common/avr')
| -rw-r--r-- | tmk_core/common/avr/bootloader.c | 6 | ||||
| -rw-r--r-- | tmk_core/common/avr/suspend.c | 2 |
2 files changed, 4 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 | ||
| 66 | static void power_down(uint8_t wdto) | 66 | static 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 | ||
