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:
Andreas Doppelhofer 2024-06-02 11:18:35 +02:00 committed by GitHub
parent b58615183f
commit 0249f66066
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}