arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.7k stars 4.72k forks source link

SML: Allow larger offset when using x to ignore bytes #21535

Closed dops-at closed 1 month ago

dops-at commented 1 month ago

Description:

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.

Discussion open -> https://github.com/arendst/Tasmota/discussions/21359

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

s-hadinger commented 1 month ago

If there is no reason to force 16 bits, you can use uint32_t instead. It makes the code smaller