Bootloader [Exit] works now on all boards
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user