From 3fcf430a2c95128488ed67c5eed26d9753d93e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 1 Feb 2021 13:26:26 -0300 Subject: [PATCH] AP_BoardConfig: Add missing const in member functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_BoardConfig/AP_BoardConfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }