printf-utils: Added function printf_and_wait
This commit is contained in:
1 parent
f79b653523
commit
32f2e53304
3 files changed
+36
-3
No files matched your search
+1
-3
@@ -721,9 +721,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
if ( usb_dev->flash_device->protocol != FLASH_COLD ) {
|
||||
usb_close_device(usb_dev);
|
||||
printf("Unplug USB cable, turn device off, press ENTER and plug USB cable again\n");
|
||||
fflush(stdin);
|
||||
getchar();
|
||||
printf_and_wait("Unplug USB cable, turn device off, press ENTER and plug USB cable again");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user