vtx: disable SA_CMD_SET_FREQUENCY usage
@@ -125,6 +125,7 @@ vtx_detect_status_t vtx_smart_audio_update(vtx_settings_t *actual) {
}
static void smart_audio_set_frequency(vtx_band_t band, vtx_channel_t channel) {
+#ifdef SA_USE_SET_FREQUENCY
if (smart_audio_settings.mode & SA_MODE_FREQUENCY) {
const uint16_t frequency = frequency_table[band][channel];
const uint8_t payload[2] = {
@@ -132,7 +133,9 @@ static void smart_audio_set_frequency(vtx_band_t band, vtx_channel_t channel) {
frequency & 0xFF,
};
serial_smart_audio_send_payload(SA_CMD_SET_FREQUENCY, payload, 2);
- } else {
+ } else
+#endif
+ {
const uint8_t index = band * VTX_CHANNEL_MAX + channel;
const uint8_t payload[1] = {index};
serial_smart_audio_send_payload(SA_CMD_SET_CHANNEL, payload, 1);
