altos: Program default flight log max value for new boards
authorKeith Packard <keithp@keithp.com>
Wed, 19 Jan 2011 19:21:52 +0000 (11:21 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 19 Jan 2011 19:21:52 +0000 (11:21 -0800)
New boards have no config space values at all, and so they need each
value to be set. Yes, this should be fixed so that there aren't two
copies of these assignments.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_config.c

index bbee3b4..cd56b47 100644 (file)
@@ -70,6 +70,7 @@ _ao_config_get(void)
                       sizeof(AO_CONFIG_DEFAULT_CALLSIGN) - 1);
                ao_config.apogee_delay = AO_CONFIG_DEFAULT_APOGEE_DELAY;
                ao_config.radio_cal = ao_radio_cal;
+               ao_config.flight_log_max = AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX;
                ao_config_dirty = 1;
        }
        if (ao_config.minor < AO_CONFIG_MINOR) {