Skip to content

Commit

Permalink
Fix: WaitForEarpress before deinit (fixes led not blue)
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Jun 12, 2021
1 parent 23f6d05 commit b405f84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sd-bootloader-ng/bootmanager/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,9 @@ static bool prepareRun(sImageInfo* imageInfo, char* imagePath, uint32_t filesize
}
#endif

#ifndef FIXED_BOOT_IMAGE
WaitForEarpress(Config_generalSettings.waitForBoot);
#endif
checkBattery();
BoardDeinitCustom();

Expand All @@ -748,7 +751,6 @@ static bool prepareRun(sImageInfo* imageInfo, char* imagePath, uint32_t filesize
watchdog_feed();

#ifndef FIXED_BOOT_IMAGE
WaitForEarpress(Config_generalSettings.waitForBoot);
if (imageInfo->ofwSimBL) {
Logger_info("Start firmware flash:%s ...", GetFlashPathById(bootInfoData.firmware));
} else if (imageInfo->bootFlashImg) {
Expand Down

0 comments on commit b405f84

Please sign in to comment.