altos: Make ao_xmem funcs require __xdata void * instead of casting
[fw/altos] / src / core / ao_config.c
index 08cc79b16dfca14086c763264117b1e661db8a5e..f0a576ee9692289b0784ba9e62a232fb1ab910fc 100644 (file)
@@ -79,7 +79,7 @@ _ao_config_get(void)
                ao_config.main_deploy = AO_CONFIG_DEFAULT_MAIN_DEPLOY;
                ao_config.radio_channel = AO_CONFIG_DEFAULT_RADIO_CHANNEL;
                ao_xmemset(&ao_config.callsign, '\0', sizeof (ao_config.callsign));
-               ao_xmemcpy(&ao_config.callsign, AO_CONFIG_DEFAULT_CALLSIGN,
+               ao_xmemcpy(&ao_config.callsign, CODE_TO_XDATA(AO_CONFIG_DEFAULT_CALLSIGN),
                       sizeof(AO_CONFIG_DEFAULT_CALLSIGN) - 1);
                ao_config_dirty = 1;
        }