From f63ae40bb40c1727c3a95f3d160d55abaf26e676 Mon Sep 17 00:00:00 2001 From: ole00 Date: Sat, 4 Nov 2023 14:28:23 +0000 Subject: [PATCH] PC App: fix gal type, take 2 Thanks rhgndf for pointing that out! --- src_pc/afterburner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src_pc/afterburner.c b/src_pc/afterburner.c index 2c0f20d..768249d 100644 --- a/src_pc/afterburner.c +++ b/src_pc/afterburner.c @@ -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)