diff --git a/inc/Services/Parameter.hpp b/inc/Services/Parameter.hpp index 66916fbd0c56552e137442855dd9d83b4b455e0d..247be3466cef0fb18ab6b309019a3f40a46a223f 100644 --- a/inc/Services/Parameter.hpp +++ b/inc/Services/Parameter.hpp @@ -63,7 +63,7 @@ class Parameter { Parameter(uint8_t newPtc, uint8_t newPfc, uint32_t initialValue = 0, UpdatePtr newPtr = nullptr); void setCurrentValue(ValueType newVal); - //void setFlag(); + void setFlag(etl::bitset<NUM_OF_FLAGS> flags); ValueType getCurrentValue(); uint8_t getPTC(); diff --git a/src/Services/Parameter.cpp b/src/Services/Parameter.cpp index c101d6ae8d2f1cb894e0b337231680e54eabda88..d6bcaa2b209c950d21384cb3e00e81c171c15497 100644 --- a/src/Services/Parameter.cpp +++ b/src/Services/Parameter.cpp @@ -33,3 +33,7 @@ uint8_t Parameter::getPTC() { uint8_t Parameter::getPFC() { return pfc; } + +void Parameter::setFlag(etl::bitset<NUM_OF_FLAGS> flags) { + this->flags |= flags; +}