altos: Fix config to set default log size for all devices with log
authorKeith Packard <keithp@keithp.com>
Fri, 6 Jun 2014 04:35:41 +0000 (21:35 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 6 Jun 2014 04:35:41 +0000 (21:35 -0700)
Not just devices with flight

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

index e5f8efba95c1255b5606e7d4212931bceaa12302..b4847cddf9327e696579f1bf3e3e341567795a33 100644 (file)
@@ -133,7 +133,7 @@ _ao_config_get(void)
                        ao_config.radio_cal = ao_radio_cal;
 #endif
                /* Fixups for minor version 4 */
                        ao_config.radio_cal = ao_radio_cal;
 #endif
                /* Fixups for minor version 4 */
-#if HAS_FLIGHT
+#if HAS_LOG
                if (minor < 4)
                        ao_config.flight_log_max = AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX;
 #endif
                if (minor < 4)
                        ao_config.flight_log_max = AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX;
 #endif