Made basic output of values, slow but starting to be actually functional
This commit is contained in:
parent
6cfdcc13ce
commit
30a39aff3e
9 changed files with 56 additions and 9 deletions
|
|
@ -25,6 +25,9 @@ PortParameterPortNumber::PortParameterPortNumber() : PortParameterInt("portNumbe
|
|||
void PortParameterPortNumber::setValueFromRegisters(uint16_t *readArray, int registerCount) {
|
||||
if (registerCount > 0) {
|
||||
this->value.i = readArray[0];
|
||||
std::stringstream valueStringStream;
|
||||
valueStringStream << std::hex << this->value.i;
|
||||
this->value.i = valueStringStream.str().at(0) - '0';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue