diff --git a/inc/Services/Parameter.hpp b/inc/Services/Parameter.hpp index 850b1f06f4b4662d4f1f3aa817fdc88dcf98304f..7e6eae599d96c93726f3d3fa3f22108df9af2aa8 100644 --- a/inc/Services/Parameter.hpp +++ b/inc/Services/Parameter.hpp @@ -24,6 +24,9 @@ */ typedef uint16_t ParamId; typedef etl::bitset<NUM_OF_FLAGS> Flags; +typedef enum {STRING = 0, + INT32 = 1, + } TypesList; /** * Parameter class - Breakdown of fields diff --git a/src/Services/ParameterService.cpp b/src/Services/ParameterService.cpp index aff371d1580ba53aeea6d15fd17a92f2c7d50042..a6cb189f271e8694b259931e76ed3f24ece29f86 100644 --- a/src/Services/ParameterService.cpp +++ b/src/Services/ParameterService.cpp @@ -89,6 +89,9 @@ void ParameterService::setParameterIds(Message& newParamValues) { uint16_t currId = newParamValues.readUint16(); // the parameter is checked for read-only status and manual update availability if (paramsList.find(currId) != paramsList.end()) { + + // WARNING! SETTING WORKS ONLY WITH UINT32_T INPUT! + // I need a way to know the input's type! paramsList.at(currId)->setCurrentValue(newParamValues.readUint32()); } else {