Skip to content

Commit

Permalink
SML: Allow larger offset when using x to ignore bytes (#21535)
Browse files Browse the repository at this point in the history
* Allow larger offset when using x to ignore bytes

STW Klagenfurt sends 355 bytes, and the interesting values starts somewhere at position 304. Therefor we need to set a larger uint range to allow more than 255 bytes to ignore.

* Update xsns_53_sml.ino

---------

Co-authored-by: Theo Arends <[email protected]>
  • Loading branch information
dops-at and arendst authored Jun 2, 2024
1 parent b586151 commit 0249f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasmota/tasmota_xsns_sensor/xsns_53_sml.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,7 @@ void SML_Decode(uint8_t index) {
} else {
mp++;
if (isdigit(*mp)) {
uint8_t skip = strtol((char*)mp, (char**)&mp, 10);
uint32_t skip = strtol((char*)mp, (char**)&mp, 10);
cp += skip;
}
}
Expand Down

0 comments on commit 0249f66

Please sign in to comment.