AP_VideoTX: fixed use of configured() vs configured_in_storage()

This commit is contained in:
Andrew Tridgell 2022-05-12 08:04:37 +10:00 committed by Peter Barker
parent 943b262eef
commit be33f77725
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ void AP_VideoTX::set_power_level(uint8_t level) {
// set the current channel
void AP_VideoTX::set_enabled(bool enabled) {
_current_enabled = enabled;
if (!_enabled.configured_in_storage()) {
if (!_enabled.configured()) {
_enabled.set_and_save(enabled);
}
}