From b7d680fd0c6e82d78df5427583a0a51146ae2d78 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Sat, 25 Nov 2023 16:52:12 -0800 Subject: [PATCH] Update to rev5a --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 7131872..9254cbb 100644 --- a/src/main.c +++ b/src/main.c @@ -172,12 +172,12 @@ int uploadimage(const char *filename) { if ((int8_t)read8() == -1) { compress = true; }; + // Load the border color + borderidx = read8(); printf("Skipping reserved bytes...\n"); for (i = 0; i < 16; i++) { read8(); } - // Load the border color - borderidx = read8(); printf("Border color: %02x\n", borderidx); printf("Reading palette entries...\n"); for (i = 0; i < (uint16_t)significant_palette_entries*2; i++) {