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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user