svalouch / python-rctclient

Python client for RCTs Serial Communication Protocol
https://rctclient.readthedocs.io
GNU General Public License v3.0
46 stars 27 forks source link

Strict frame start check -> frame.py #34

Open SaxonWood opened 7 months ago

SaxonWood commented 7 months ago

new option in frame.py -> ReceiveFrame Class -> consume

Class and consume function is backward compatible. Only if new parameter "strict_start_check" is set to True, the start of frame search will be stricter as before and expect a '00' preamble before the start-token. This helps to avoid the "invalid command" errors seen with newer inverter software versions.