Skip to content
Snippets Groups Projects
Unverified Commit 0e657a94 authored by Grigoris Pavlakis's avatar Grigoris Pavlakis
Browse files

Add a setFlag() function

parent d1f5853d
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ class Parameter { ...@@ -63,7 +63,7 @@ class Parameter {
Parameter(uint8_t newPtc, uint8_t newPfc, uint32_t initialValue = 0, UpdatePtr newPtr = nullptr); Parameter(uint8_t newPtc, uint8_t newPfc, uint32_t initialValue = 0, UpdatePtr newPtr = nullptr);
void setCurrentValue(ValueType newVal); void setCurrentValue(ValueType newVal);
//void setFlag(); void setFlag(etl::bitset<NUM_OF_FLAGS> flags);
ValueType getCurrentValue(); ValueType getCurrentValue();
uint8_t getPTC(); uint8_t getPTC();
......
...@@ -33,3 +33,7 @@ uint8_t Parameter::getPTC() { ...@@ -33,3 +33,7 @@ uint8_t Parameter::getPTC() {
uint8_t Parameter::getPFC() { uint8_t Parameter::getPFC() {
return pfc; return pfc;
} }
void Parameter::setFlag(etl::bitset<NUM_OF_FLAGS> flags) {
this->flags |= flags;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment