From 9ac17804dab908ae6ba4a7147a34e40b3bef9bb8 Mon Sep 17 00:00:00 2001 From: Alexander Hartmann Date: Fri, 19 Feb 2016 18:49:12 +0100 Subject: [PATCH] fixed default section loading, if there is no definition for the pressed key --- bootloader/source/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootloader/source/main.c b/bootloader/source/main.c index 7b71edb..fba31a5 100644 --- a/bootloader/source/main.c +++ b/bootloader/source/main.c @@ -77,7 +77,7 @@ int main() { switch (config_err) { case 0: // section not found, try to load [DEFAULT] section - if (!app.path) { + if (strlen(app.path)==0) { debug("section not found, trying to load the default section"); app.section = "DEFAULT"; // don't need to check error again