AP_Param: added set() to AP_Enum

This commit is contained in:
Andrew Tridgell 2023-04-11 18:42:31 +10:00 committed by Peter Barker
parent 470b9638ea
commit 4899ec9457
1 changed files with 6 additions and 0 deletions

View File

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