EVNotify / EVNotiPi

Python Version of EVNotify
Other
29 stars 18 forks source link

Implement isotp autopadding #92

Open noradtux opened 3 years ago

noradtux commented 3 years ago

the isotp-decoder uses struct.unpack to decode binary data into python variables. It needs to know exactly how much data it will get from the car. This patch adds autodetection and -adjustment of the expected length. Detected difference is logged and can be set permanently by adding the appropriate padding to the structure definition.