mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +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)
|
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... ");
|
printf("\nErasing... ");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
@@ -1912,8 +1914,6 @@ int processFile()
|
|||||||
|
|
||||||
|
|
||||||
/* Execute the XSVF in the file */
|
/* 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();
|
startClock = clock();
|
||||||
iErrorCode = xsvfExecute();
|
iErrorCode = xsvfExecute();
|
||||||
endClock = clock();
|
endClock = clock();
|
||||||
|
|||||||
Reference in New Issue
Block a user