mirror of https://github.com/arendst/Tasmota.git
SML: Allow larger offset when using x to ignore bytes (#21535)
* 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 <11044339+arendst@users.noreply.github.com>
This commit is contained in:
parent
b58615183f
commit
0249f66066
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue