diff options
author | Keith Packard <keithp@keithp.com> | 2012-03-27 22:53:08 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-03-27 22:53:08 -0700 |
commit | b6c7ae2c1f8cba7351cd139c49322280d9d3af47 (patch) | |
tree | bd2d9635f4367f4a457a9f667733797e8ad11863 /src | |
parent | 3f0379db7067eaf104892a82b9c49142087adece (diff) |
altos: Reset config version if it's too large as well
Any future config values will get trashed if we down grade the
firmware, so we must reset the firmware version whenever it gets
written.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ao_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_config.c b/src/core/ao_config.c index 6fcebe1e..350ebcbe 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -91,7 +91,7 @@ _ao_config_get(void) sizeof(AO_CONFIG_DEFAULT_CALLSIGN) - 1); ao_config_dirty = 1; } - if (ao_config.minor < AO_CONFIG_MINOR) { + if (ao_config.minor != AO_CONFIG_MINOR) { /* Fixups for minor version 1 */ if (ao_config.minor < 1) ao_config.apogee_delay = AO_CONFIG_DEFAULT_APOGEE_DELAY; |