From 5fb16ba80ab8522029cd47785f37d3924e36bb6b Mon Sep 17 00:00:00 2001 From: Gerry Stellenberg Date: Wed, 29 Jun 2011 12:40:29 -0500 Subject: [PATCH] Moved display of updating/erasing messages to after the XSVF data starts being processed. These messages will no longer get displayed if the XSVF data is corrupt. --- utils/pinprocfw/pinprocfw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/pinprocfw/pinprocfw.cpp b/utils/pinprocfw/pinprocfw.cpp index 2370864..e885621 100644 --- a/utils/pinprocfw/pinprocfw.cpp +++ b/utils/pinprocfw/pinprocfw.cpp @@ -522,7 +522,9 @@ void pulseClock() void readByte(unsigned char *data) { - if (numBytesCurrent == 0) { + if (numBytesCurrent == 10) { + fprintf(stderr, "\n\nUpdating P-ROC. This may take a couple of minutes.\n"); + fprintf(stderr, "WARNING: DO NOT POWER CYCLE UNTIL COMPLETE!\n"); printf("\nErasing... "); fflush(stdout); } @@ -1912,8 +1914,6 @@ int processFile() /* Execute the XSVF in the file */ - fprintf(stderr, "\n\nUpdating P-ROC. This may take a couple of minutes.\n"); - fprintf(stderr, "WARNING: DO NOT POWER CYCLE UNTIL COMPLETE!\n"); startClock = clock(); iErrorCode = xsvfExecute(); endClock = clock();