From 9a4c8ce6a14a3a49b6aa12f0266d4cf7df0fbf2e Mon Sep 17 00:00:00 2001 From: zivillian Date: Mon, 31 Jul 2023 12:20:57 +0200 Subject: [PATCH] use core id 1 to further reduce modbus errors (#13) --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index cbb037a..3eb7175 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);