grid-x / modbus

BSD 3-Clause "New" or "Revised" License
78 stars 26 forks source link

Use embedded fields directly #67

Closed andig closed 1 year ago

andig commented 1 year ago

This PR aligns and standardises the implementations of ASCII and RTU serial transporters. Before this PR, there was a mix of accessing embedded field's fields directly or via the embedded field. This PR consistently accesses them directly.

It also contains a minor optimisation for variable initialisation in readIncrementally.

andig commented 1 year ago

Ping for review