Prompt the user when flash_suggest_update_bootloader()
pm3line_init() delayed to not install signal handlers on other usages than interactive client
This commit is contained in:
2 files changed
+9
-1
No files matched your search
@@ -577,6 +577,13 @@ static void flash_suggest_update_bootloader(void) {
|
||||
PrintAndLogEx(INFO, "---------------------------------------------------");
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
gs_printed_msg = true;
|
||||
if (g_session.stdinOnTTY) {
|
||||
PrintAndLogEx(INFO, "Press ENTER to continue or CTRL-C to cancel...");
|
||||
fflush(stdout);
|
||||
while (kbd_enter_pressed() == false) {
|
||||
msleep(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If the device's boot is newer than the current flasher, we can suggest the user update the flasher.
|
||||
|
||||
Reference in new issue
Block a user