Return Correct Payload Byte from HM330x

This commit is contained in:
seiichiro 2021-05-02 12:56:12 +02:00
parent 6c67032ef2
commit a9498980bb

View file

@ -66,9 +66,10 @@ uint8_t HM330x::getSensorData(char *payload, uint8_t startbyte) {
uint16ToPayload(value, payload, startbyte); uint16ToPayload(value, payload, startbyte);
startbyte += 2; startbyte += 2;
} }
return startbyte;
} }
} }
return startbyte; return startbyte+6;
} }
// Send only a Command // Send only a Command