Browse Source

AP_VideoTX: only mark updates when the VTX is enabled

c415-sdk
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
961c517274
  1. 5
      libraries/AP_VideoTX/AP_VideoTX.cpp

5
libraries/AP_VideoTX/AP_VideoTX.cpp

@ -241,11 +241,12 @@ void AP_VideoTX::update(void) @@ -241,11 +241,12 @@ void AP_VideoTX::update(void)
bool AP_VideoTX::have_params_changed() const
{
return update_power()
return _enabled
&& (update_power()
|| update_band()
|| update_channel()
|| update_frequency()
|| update_options();
|| update_options());
}
// update the configured frequency to match the channel and band

Loading…
Cancel
Save