Skip to content

Commit

Permalink
use core id 1 to further reduce modbus errors (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
zivillian authored Jul 31, 2023
1 parent 9bd6e13 commit 9a4c8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void setup() {

MBclient = new ModbusClientRTU(config.getModbusRtsPin());
MBclient->setTimeout(1000);
MBclient->begin(modbusSerial);
MBclient->begin(modbusSerial, 1);
for (uint8_t i = 1; i < 248; i++)
{
MBbridge.attachServer(i, i, ANY_FUNCTION_CODE, MBclient);
Expand Down

0 comments on commit 9a4c8ce

Please sign in to comment.