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 bbee3b443e6a0a7e17bfb9805af311dfba6e3982..cd56b47314a62d091bc7e311411a8e3ac11c5848 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) {