1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-22 18:15:25 +01:00

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.

This commit is contained in:
Gerry Stellenberg
2011-06-29 12:40:29 -05:00
parent 95b9cb8193
commit 5fb16ba80a

View File

@@ -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();