diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index 35978722fa..d5bcc76853 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -479,7 +479,7 @@ public: // returns a mask indicating which channels have overrides. Bit 0 // is RC channel 1. Beware this is not a cheap call. - static uint16_t get_override_mask(); + uint16_t get_override_mask() const; class RC_Channel *find_channel_for_option(const RC_Channel::aux_func_t option); bool duplicate_options_exist(); diff --git a/libraries/RC_Channel/RC_Channels.cpp b/libraries/RC_Channel/RC_Channels.cpp index 7a24050881..8578904f5a 100644 --- a/libraries/RC_Channel/RC_Channels.cpp +++ b/libraries/RC_Channel/RC_Channels.cpp @@ -114,7 +114,7 @@ void RC_Channels::clear_overrides(void) // copter and plane, RC_Channels needs to control failsafes to resolve this } -uint16_t RC_Channels::get_override_mask(void) +uint16_t RC_Channels::get_override_mask(void) const { uint16_t ret = 0; RC_Channels &_rc = rc();