From 4899ec9457c1990b7863fa1c93cb09a3946011da Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Apr 2023 18:42:31 +1000 Subject: [PATCH] AP_Param: added set() to AP_Enum --- libraries/AP_Param/AP_Param.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index a7f47c814b..9433758377 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -1018,6 +1018,9 @@ public: operator const eclass () const { return (eclass)_value; } + void set(eclass v) { + AP_Int8::set(int8_t(v)); + } }; template @@ -1027,4 +1030,7 @@ public: operator const eclass () const { return (eclass)_value; } + void set(eclass v) { + AP_Int16::set(int16_t(v)); + } };