mirror of
https://github.com/ole00/afterburner.git
synced 2025-08-15 18:27:31 +00:00
PC App: fix gal type, take 2
Thanks rhgndf for pointing that out!
This commit is contained in:
@@ -1106,7 +1106,7 @@ static char operationEraseGal(void) {
|
|||||||
sendLine(buf, MAX_LINE, 300);
|
sendLine(buf, MAX_LINE, 300);
|
||||||
|
|
||||||
//set GAL type
|
//set GAL type
|
||||||
sprintf(buf, "#t %i\r", (int) gal);
|
sprintf(buf, "#t %c\r", '0' + (int) gal);
|
||||||
sendLine(buf, MAX_LINE, 300);
|
sendLine(buf, MAX_LINE, 300);
|
||||||
|
|
||||||
//Exit upload mode (ensure the return texts are discarded by waiting 100 ms)
|
//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);
|
sendLine(buf, MAX_LINE, 100);
|
||||||
|
|
||||||
//set GAL type
|
//set GAL type
|
||||||
sprintf(buf, "#t %i\r", (int) gal);
|
sprintf(buf, "#t %c\r", '0' + (int) gal);
|
||||||
sendLine(buf, MAX_LINE, 100);
|
sendLine(buf, MAX_LINE, 100);
|
||||||
|
|
||||||
//Exit upload mode (ensure the texts are discarded by waiting 100 ms)
|
//Exit upload mode (ensure the texts are discarded by waiting 100 ms)
|
||||||
|
Reference in New Issue
Block a user