We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 547fa88 + a0c3a72 commit b77ecceCopy full SHA for b77ecce
examples/protocols/modbus/serial/mb_slave/main/slave.c
@@ -99,11 +99,11 @@ void app_main(void)
99
100
ESP_ERROR_CHECK(mbc_slave_init(MB_PORT_SERIAL_SLAVE, &mbc_slave_handler)); // Initialization of Modbus controller
101
102
- // Setup communication parameters and start stack
+ // Setup communication mode and start stack
103
#if CONFIG_MB_COMM_MODE_ASCII
104
- comm_info.mode = MB_MODE_ASCII,
+ comm_info.mode = MB_MODE_ASCII;
105
#elif CONFIG_MB_COMM_MODE_RTU
106
- comm_info.mode = MB_MODE_RTU,
+ comm_info.mode = MB_MODE_RTU;
107
#endif
108
comm_info.slave_addr = MB_SLAVE_ADDR;
109
comm_info.port = MB_PORT_NUM;
0 commit comments