debevv / nanoMODBUS

A compact MODBUS RTU/TCP C library for embedded/microcontrollers
MIT License
282 stars 58 forks source link

FIX incorrect calculation of payload bytes #34

Closed derhoch closed 1 year ago

derhoch commented 1 year ago

If quantity is divisible by 8, the previous calculation adds an unnecessary extra byte to the payload.

debevv commented 1 year ago

Right, this could have used some testing with a third-party library.
Thank you