AP_VideoTX: only mark updates when the VTX is enabled

This commit is contained in:
Andy Piper 2021-03-09 19:36:07 +00:00 committed by Andrew Tridgell
parent f1eee860c0
commit 961c517274
1 changed files with 3 additions and 2 deletions

View File

@ -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