diff options
author | Luiz Ribeiro <luizribeiro@gmail.com> | 2017-01-21 17:09:17 -0500 |
---|---|---|
committer | Luiz Ribeiro <luizribeiro@gmail.com> | 2017-01-21 17:18:05 -0500 |
commit | 9ce38cbccf073fccea6f7ee6492bf472a48852b8 (patch) | |
tree | c98d5fd54bd84b1c72338a72b06490270d8b50ac /tmk_core/common/avr/bootloader.c | |
parent | 461dfd44621ef31cabc08136d4714ca24ed651fa (diff) | |
download | qmk_firmware-9ce38cbccf073fccea6f7ee6492bf472a48852b8.tar.gz |
Simplified and polished a bit the code changes on tmk_core
Diffstat (limited to 'tmk_core/common/avr/bootloader.c')
-rw-r--r-- | tmk_core/common/avr/bootloader.c | 6 |
1 files changed, 4 insertions, 2 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) { _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 |