diff options
author | Keith Packard <keithp@keithp.com> | 2012-03-28 00:38:37 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-03-28 00:39:56 -0700 |
commit | d60862fce6ac27a97ad6337eea32a4b48645d158 (patch) | |
tree | c9c6f068a5c1e9dede0108fec64f11bce438a34f /src | |
parent | b98f75dbcccd40c8cbf32c3bfd21bd6f5648b861 (diff) |
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 <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ao_config.c | 1 |
1 files changed, 1 insertions, 0 deletions
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++) |