mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 04:15:26 +03:00
Bootloader [Exit] works now on all boards
This commit is contained in:
parent
43284b9ca9
commit
3dc91719a0
1 changed files with 2 additions and 6 deletions
|
@ -212,22 +212,18 @@ int main()
|
||||||
pwrInit();
|
pwrInit();
|
||||||
pwrOff();
|
pwrOff();
|
||||||
|
|
||||||
// wait for inputs to stabilize
|
|
||||||
for (uint32_t i = 0; i < 50000; i += 1) {
|
|
||||||
wdt_reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
// LHR & RHL trims not pressed simultanously
|
// LHR & RHL trims not pressed simultanously
|
||||||
if (readTrims() != BOOTLOADER_KEYS) {
|
if (readTrims() != BOOTLOADER_KEYS) {
|
||||||
// Start main application
|
// Start main application
|
||||||
jumpTo(APP_START_ADDRESS);
|
jumpTo(APP_START_ADDRESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pwrOn();
|
||||||
|
|
||||||
#if defined(ROTARY_ENCODER_NAVIGATION)
|
#if defined(ROTARY_ENCODER_NAVIGATION)
|
||||||
rotaryEncoderInit();
|
rotaryEncoderInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pwrOn();
|
|
||||||
delaysInit(); // needed for lcdInit()
|
delaysInit(); // needed for lcdInit()
|
||||||
|
|
||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue