Return Correct Payload Byte from HM330x
This commit is contained in:
parent
6c67032ef2
commit
a9498980bb
1 changed files with 2 additions and 1 deletions
|
@ -66,10 +66,11 @@ uint8_t HM330x::getSensorData(char *payload, uint8_t startbyte) {
|
|||
uint16ToPayload(value, payload, startbyte);
|
||||
startbyte += 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return startbyte;
|
||||
}
|
||||
}
|
||||
return startbyte+6;
|
||||
}
|
||||
|
||||
// Send only a Command
|
||||
bool HM330x::sendCmd(uint8_t cmd) {
|
||||
|
|
Loading…
Reference in a new issue