From 7ed8e8d3b64976c42a467747e8fdc30b09b05aa3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 16 May 2022 07:30:16 +1000 Subject: [PATCH] AP_BoardConfig: more changes for 32 bit servo mask --- libraries/AP_BoardConfig/AP_BoardConfig.cpp | 2 +- libraries/AP_BoardConfig/AP_BoardConfig.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.cpp b/libraries/AP_BoardConfig/AP_BoardConfig.cpp index 7d01edfe89..85ab374558 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.cpp +++ b/libraries/AP_BoardConfig/AP_BoardConfig.cpp @@ -373,7 +373,7 @@ void AP_BoardConfig::init() } // set default value for BRD_SAFETY_MASK -void AP_BoardConfig::set_default_safety_ignore_mask(uint16_t mask) +void AP_BoardConfig::set_default_safety_ignore_mask(uint32_t mask) { #if HAL_HAVE_SAFETY_SWITCH state.ignore_safety_channels.set_default(mask); diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.h b/libraries/AP_BoardConfig/AP_BoardConfig.h index 1d508c9e9c..4569266807 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.h +++ b/libraries/AP_BoardConfig/AP_BoardConfig.h @@ -100,7 +100,7 @@ public: }; // set default value for BRD_SAFETY_MASK - void set_default_safety_ignore_mask(uint16_t mask); + void set_default_safety_ignore_mask(uint32_t mask); static enum px4_board_type get_board_type(void) { #if AP_FEATURE_BOARD_DETECT @@ -141,7 +141,7 @@ public: // return the value of BRD_SAFETY_MASK uint16_t get_safety_mask(void) const { #if AP_FEATURE_BOARD_DETECT || defined(AP_FEATURE_BRD_PWM_COUNT_PARAM) - return uint16_t(state.ignore_safety_channels.get()); + return uint32_t(state.ignore_safety_channels.get()); #else return 0; #endif