From 8d2a1720640449d7e9b0fec6c1e49cd60ca301ef Mon Sep 17 00:00:00 2001 From: Kabir Waraich <90755626+kabirwbt@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:28:47 +0530 Subject: [PATCH] Update slave.c to fix the mode There is an issue in the lines that I have changed. I think it was copied over from the enum by mistake. --- examples/protocols/modbus/serial/mb_slave/main/slave.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/protocols/modbus/serial/mb_slave/main/slave.c b/examples/protocols/modbus/serial/mb_slave/main/slave.c index db5c29784dac..8ff7c0624cd0 100644 --- a/examples/protocols/modbus/serial/mb_slave/main/slave.c +++ b/examples/protocols/modbus/serial/mb_slave/main/slave.c @@ -101,9 +101,9 @@ void app_main(void) // Setup communication parameters and start stack #if CONFIG_MB_COMM_MODE_ASCII - comm_info.mode = MB_MODE_ASCII, + comm_info.mode = MB_MODE_ASCII; #elif CONFIG_MB_COMM_MODE_RTU - comm_info.mode = MB_MODE_RTU, + comm_info.mode = MB_MODE_RTU; #endif comm_info.slave_addr = MB_SLAVE_ADDR; comm_info.port = MB_PORT_NUM;