printf-utils: Added function printf_and_wait

This commit is contained in:
Pali Rohár committed 2012-08-10 14:47:31 +02:00
1 parent f79b653523
commit 32f2e53304
3 files changed
+36 -3

No files matched your search

+1 -3
View File
@@ -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;
}