mirror of https://github.com/ArduPilot/ardupilot
RC_Channel: fixed use of configured() vs configured_in_storage()
This commit is contained in:
parent
be33f77725
commit
d512dc0b00
|
@ -88,8 +88,8 @@ public:
|
||||||
// set and save trim if changed
|
// set and save trim if changed
|
||||||
void set_and_save_radio_trim(int16_t val) { radio_trim.set_and_save_ifchanged(val);}
|
void set_and_save_radio_trim(int16_t val) { radio_trim.set_and_save_ifchanged(val);}
|
||||||
|
|
||||||
// check if any of the trim/min/max param are configured in storage, this would indicate that the user has done a calibration at somepoint
|
// check if any of the trim/min/max param are configured, this would indicate that the user has done a calibration at somepoint
|
||||||
bool configured_in_storage() { return radio_min.configured_in_storage() || radio_max.configured_in_storage() || radio_trim.configured_in_storage(); }
|
bool configured() { return radio_min.configured() || radio_max.configured() || radio_trim.configured(); }
|
||||||
|
|
||||||
ControlType get_type(void) const { return type_in; }
|
ControlType get_type(void) const { return type_in; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue