summaryrefslogtreecommitdiffstats
path: root/src/main2.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-08-10 14:47:31 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-08-10 14:47:31 +0200
commit32f2e5330400925d52531180ee72a8c2b2c468f8 (patch)
treedc9b295fc8ad63d2531668f752b17bfd8efa9be3 /src/main2.c
parentf79b653523980cb3a7510a474860aa1594868c9f (diff)
download0xFFFF-32f2e5330400925d52531180ee72a8c2b2c468f8.tar.bz2
printf-utils: Added function printf_and_wait
Diffstat (limited to 'src/main2.c')
-rw-r--r--src/main2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main2.c b/src/main2.c
index 2736828..b18b1ee 100644
--- a/src/main2.c
+++ b/src/main2.c
@@ -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;
}