Skip to content

Commit a0c3a72

Browse files
committed
fix(modbus): Fix the mode setup in modbus slave
#14878
1 parent 8d2a172 commit a0c3a72

File tree

1 file changed

+1
-1
lines changed
  • examples/protocols/modbus/serial/mb_slave/main

1 file changed

+1
-1
lines changed

examples/protocols/modbus/serial/mb_slave/main/slave.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void app_main(void)
9999

100100
ESP_ERROR_CHECK(mbc_slave_init(MB_PORT_SERIAL_SLAVE, &mbc_slave_handler)); // Initialization of Modbus controller
101101

102-
// Setup communication parameters and start stack
102+
// Setup communication mode and start stack
103103
#if CONFIG_MB_COMM_MODE_ASCII
104104
comm_info.mode = MB_MODE_ASCII;
105105
#elif CONFIG_MB_COMM_MODE_RTU

0 commit comments

Comments
 (0)