PC App: fix gal type, take 2

Thanks rhgndf for pointing that out!
This commit is contained in:
ole00 2023-11-04 14:28:23 +00:00
parent a1fc6bb2f7
commit f63ae40bb4
1 changed files with 2 additions and 2 deletions

View File

@ -1106,7 +1106,7 @@ static char operationEraseGal(void) {
sendLine(buf, MAX_LINE, 300);
//set GAL type
sprintf(buf, "#t %i\r", (int) gal);
sprintf(buf, "#t %c\r", '0' + (int) gal);
sendLine(buf, MAX_LINE, 300);
//Exit upload mode (ensure the return texts are discarded by waiting 100 ms)
@ -1137,7 +1137,7 @@ static char operationReadFuses(void) {
sendLine(buf, MAX_LINE, 100);
//set GAL type
sprintf(buf, "#t %i\r", (int) gal);
sprintf(buf, "#t %c\r", '0' + (int) gal);
sendLine(buf, MAX_LINE, 100);
//Exit upload mode (ensure the texts are discarded by waiting 100 ms)