AP_Param: added set() to AP_Enum

This commit is contained in:
Andrew Tridgell 2023-04-11 18:42:31 +10:00
parent a39357fe29
commit 030b1c855f
1 changed files with 6 additions and 0 deletions

View File

@ -1018,6 +1018,9 @@ public:
operator const eclass () const { operator const eclass () const {
return (eclass)_value; return (eclass)_value;
} }
void set(eclass v) {
AP_Int8::set(int8_t(v));
}
}; };
template<typename eclass> template<typename eclass>
@ -1027,4 +1030,7 @@ public:
operator const eclass () const { operator const eclass () const {
return (eclass)_value; return (eclass)_value;
} }
void set(eclass v) {
AP_Int16::set(int16_t(v));
}
}; };