fix(modbus_slave): Fix the mode setup in modbus slave

This commit is contained in:
aleks authored and Alex Lisitsyn committed 2024-12-04 22:40:16 +08:00
1 parent 4d15696f7f
commit 64777483e7
1 file changed
+2 -2
+2 -2
View File
@@ -144,9 +144,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;