bertmelis / esp32ModbusRTU

modbus RTU client for ESP32
MIT License
70 stars 44 forks source link

fix exception response detection #2

Closed jandegr closed 5 years ago

jandegr commented 5 years ago

Hi,

By the time it gets to isComplete(), _index is already increased so an exception response is not reported and instead a timeout error is reported. Found this while working on write register functionality and testing on an SDM120.

THX for this library :)

bertmelis commented 5 years ago

Thanks for the fix.

bertmelis commented 5 years ago

Argh, github defaults to merge instead of squash merge...