From 399115e592b157be7b05c4e18aabbf9d804e673e Mon Sep 17 00:00:00 2001 From: David Kuder Date: Fri, 14 Apr 2023 01:44:14 -0400 Subject: [PATCH] Always build before commit. --- src/config.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 93ddab9..4ad4bd1 100644 --- a/src/config.c +++ b/src/config.c @@ -737,13 +737,16 @@ void restore_config() { backdrop(PROGNAME); window(" Error ", 28, 7, 1); gotoy(11); gotox(7); - cprintf("Unable to erase block $%4X", block); + cprintf("Unable to erase block $%4X", last); ok_button(); goto cleanup; } cfgfile_upload("CONFIG.BACKUP", next); + +cleanup: + return; } void backup_config() { @@ -771,7 +774,7 @@ cleanup: void read_config() { int i; - uint16_t next, last; + uint16_t last; backdrop(PROGNAME); window(" Please Wait ", 26, 6, 1);