vtx: make sure uart is not grabbed by rx
@@ -335,8 +335,8 @@ void vtx_update() {
return;
}
- if (profile.serial.smart_audio == USART_PORT_INVALID) {
- // no serial assigned to vtx
+ if (profile.serial.smart_audio == USART_PORT_INVALID || profile.serial.smart_audio == serial_rx_port) {
+ // no serial assigned to vtx or still in use by rx
return;
}
@@ -378,6 +378,10 @@ void vtx_update() {
return;
}
+ if (!has_vtx_configured()) {
+ return;
+ }
+
const vtx_detect_status_t status = vtx_update_protocol(vtx_settings.detected, &actual);
if (status < VTX_DETECT_SUCCESS) {
