From: Keith Packard Date: Wed, 28 Mar 2012 07:38:37 +0000 (-0700) Subject: altos: Make sure config values are loaded in 'c s' command X-Git-Tag: 1.0.9.4~39 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=d60862fce6ac27a97ad6337eea32a4b48645d158 altos: Make sure config values are loaded in 'c s' command ao_config_get may not have been called when ao_config_show is invoked by the user, so make sure the config values are loaded before showing uninitialized data. Signed-off-by: Keith Packard --- diff --git a/src/core/ao_config.c b/src/core/ao_config.c index 350ebcbe..08e6deea 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -609,6 +609,7 @@ static void ao_config_show(void) __reentrant { uint8_t cmd; + ao_config_get(); printf("Config version: %d.%d\n", ao_config.major, ao_config.minor); for (cmd = 0; ao_config_vars[cmd].str != NULL; cmd++)