mirror of https://github.com/ArduPilot/ardupilot
AP_VideoTX: fixed use of configured() vs configured_in_storage()
This commit is contained in:
parent
943b262eef
commit
be33f77725
|
@ -217,7 +217,7 @@ void AP_VideoTX::set_power_level(uint8_t level) {
|
||||||
// set the current channel
|
// set the current channel
|
||||||
void AP_VideoTX::set_enabled(bool enabled) {
|
void AP_VideoTX::set_enabled(bool enabled) {
|
||||||
_current_enabled = enabled;
|
_current_enabled = enabled;
|
||||||
if (!_enabled.configured_in_storage()) {
|
if (!_enabled.configured()) {
|
||||||
_enabled.set_and_save(enabled);
|
_enabled.set_and_save(enabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue