Use recorded accelerometer baseline data in ao_flight_test
[fw/altos] / ao_config.c
index e32dca4537b26df3d01cfc94bd5ffd3f5ac32a05..02f1e0827774d2f79da5c318eb37b814fba0fbb5 100644 (file)
@@ -87,6 +87,8 @@ ao_config_callsign_set(void) __reentrant
                return;
        ao_mutex_get(&ao_config_mutex);
        _ao_config_get();
+       while (c < AO_MAX_CALLSIGN + 1)
+               callsign[c++] = '\0';
        memcpy(&ao_config.callsign, &callsign,
               AO_MAX_CALLSIGN + 1);
        ao_config_dirty = 1;
@@ -97,7 +99,7 @@ ao_config_callsign_set(void) __reentrant
 void
 ao_config_radio_channel_show(void) __reentrant
 {
-       uint32_t        freq = 435550L + ao_config.radio_channel * 100L;
+       uint32_t        freq = 434550L + ao_config.radio_channel * 100L;
        uint16_t        mhz = freq / 1000L;
        uint16_t        khz = freq % 1000L;
 
@@ -188,7 +190,7 @@ ao_config_accel_zero_g_set(void) __reentrant
 }
 
 struct ao_config_var {
-       uint8_t         cmd;
+       char            cmd;
        void            (*set)(void) __reentrant;
        void            (*show)(void) __reentrant;
        const char      *help;
@@ -225,7 +227,7 @@ __code struct ao_config_var ao_config_vars[] = {
 void
 ao_config_set(void)
 {
-       uint8_t c;
+       char    c;
        uint8_t cmd;
        void (*__xdata func)(void) __reentrant;