thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
1.07k stars 433 forks source link

Bug fixes in modbusmaster #145

Closed jwsbck closed 3 years ago

jwsbck commented 3 years ago

Hi!

This PR fixes three bugs in the modbusmaster runtime.

  1. Baud rates for Serial interfaces often exceed the maximum uint16_t value -> change to uint32_t in master.h.
  2. Arguments to copy_from_cache are swapped in master_indexed.cpp
  3. bool_input_buf and bool_output_buf are swapped in master_indexed.cpp

With these changes i was able to run the demo project for Arduino Uno.

Best regards Johannes