[Taranis] "BOOT" string was optimized out from the bootloader!

This commit is contained in:
bsongis
2015-07-13 11:05:03 +02:00
parent d183bbd05e
commit ff9d866550
2 changed files with 3 additions and 0 deletions
@@ -403,6 +403,7 @@ int main()
backlightInit();
lcd_clear();
lcd_putsn(0, 0, (const char *)bootloaderVersion, 0); // trick to avoid bootloaderVersion to be optimized out ...
lcd_putsLeft(0, BOOTLOADER_TITLE);
lcd_invert_line(0);
lcdRefresh();
+2
View File
@@ -222,6 +222,7 @@ void eepromWaitEepromStandbyState(void)
}
}
#if !defined(BOOT)
void setVolume(uint8_t volume)
{
if (volume > VOLUME_LEVEL_MAX) {
@@ -248,6 +249,7 @@ void setVolume(uint8_t volume)
I2C_GenerateSTOP(I2C, ENABLE);
}
#endif
#if 0
uint8_t I2C_read_volume()