Simplified and polished a bit the code changes on tmk_core
This commit is contained in:
parent
461dfd4462
commit
9ce38cbccf
5 changed files with 8 additions and 7 deletions
|
@ -90,8 +90,10 @@ void bootloader_jump(void) {
|
|||
_delay_ms(5);
|
||||
#endif
|
||||
|
||||
#ifdef EEPROM_BOOTLOADER_START
|
||||
eeprom_write_byte((uint8_t *)EEPROM_BOOTLOADER_START, 0x00);
|
||||
#ifdef BOOTLOADHID_BOOTLOADER
|
||||
// force bootloadHID to stay in bootloader mode, so that it waits
|
||||
// for a new firmware to be flashed
|
||||
eeprom_write_byte((uint8_t *)1, 0x00);
|
||||
#endif
|
||||
|
||||
// watchdog reset
|
||||
|
|
|
@ -65,7 +65,6 @@ static uint8_t wdt_timeout = 0;
|
|||
|
||||
static void power_down(uint8_t wdto)
|
||||
{
|
||||
#ifndef __AVR_ATmega32A__
|
||||
#ifdef PROTOCOL_LUFA
|
||||
if (USB_DeviceState == DEVICE_STATE_Configured) return;
|
||||
#endif
|
||||
|
@ -100,7 +99,6 @@ static void power_down(uint8_t wdto)
|
|||
|
||||
// Disable watchdog after sleep
|
||||
wdt_disable();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue