1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-13 11:29:51 +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();
pwrOff();
// wait for inputs to stabilize
for (uint32_t i = 0; i < 50000; i += 1) {
wdt_reset();
}
// LHR & RHL trims not pressed simultanously
if (readTrims() != BOOTLOADER_KEYS) {
// Start main application
jumpTo(APP_START_ADDRESS);
}
pwrOn();
#if defined(ROTARY_ENCODER_NAVIGATION)
rotaryEncoderInit();
#endif
pwrOn();
delaysInit(); // needed for lcdInit()
#if defined(DEBUG)