diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.h b/libraries/AP_BoardConfig/AP_BoardConfig.h index 190a2848c6..a8b9f41c04 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.h +++ b/libraries/AP_BoardConfig/AP_BoardConfig.h @@ -129,7 +129,7 @@ public: }; // return safety button options. Bits are in enum board_safety_button_option - uint16_t get_safety_button_options(void) { + uint16_t get_safety_button_options(void) const { return uint16_t(state.safety_option.get()); }