#define AO_CONFIG_DEFAULT_MAIN_DEPLOY 250
#define AO_CONFIG_DEFAULT_RADIO_CHANNEL 0
-#define AO_CONFIG_DEFAULT_CALLSIGN "KD7SGQ"
+#define AO_CONFIG_DEFAULT_CALLSIGN "KD7SQG"
#define AO_CONFIG_DEFAULT_ACCEL_ZERO_G 16000
static void
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;
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;
}
struct ao_config_var {
- uint8_t cmd;
+ char cmd;
void (*set)(void) __reentrant;
void (*show)(void) __reentrant;
const char *help;
void
ao_config_set(void)
{
- uint8_t c;
+ char c;
uint8_t cmd;
void (*__xdata func)(void) __reentrant;