1
0
Fork 0
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:
Bertrand Songis 2019-06-19 17:09:19 +02:00
parent 43284b9ca9
commit 3dc91719a0
No known key found for this signature in database
GPG key ID: F189F79290FEC50F

View file

@ -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)