1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

Bootloader removed from inside opentx application code.

This commit is contained in:
bsongis 2014-05-13 21:21:51 +02:00
parent 0e84a27521
commit 216ecc636a
3 changed files with 4 additions and 47 deletions

View file

@ -303,23 +303,6 @@ void watchdogSetTimeout(uint32_t timeout)
{
watchdogTimeout = timeout;
}
#if 0
// TODO remove definitely?
void opentxBootloader()
{
BACKLIGHT_ON();
lcd_clear();
lcd_putcAtt( 48, 24, 'U', DBLSIZE ) ;
lcd_putcAtt( 60, 24, 'S', DBLSIZE ) ;
lcd_putcAtt( 72, 24, 'B', DBLSIZE ) ;
lcdRefresh() ;
usbBootloader();
}
#endif
#endif
void per10ms()
@ -5678,27 +5661,6 @@ int main(void)
opentxInit(mcusr);
#endif
#if 0
// TODO remove definitely?
if (BOOTLOADER_REQUEST()) {
pwrOff(); // Only turn power off if necessary
#if defined(HAPTIC)
hapticOff();
#endif
g_eeGeneral.optrexDisplay = 1;
lcd_clear();
lcdRefresh();
g_eeGeneral.optrexDisplay = 0;
g_eeGeneral.backlightBright = 0;
g_eeGeneral.contrast = 25;
opentxBootloader();
}
#endif
#if defined(CPUARM)
CoInitOS();