Skip to content

Commit

Permalink
fix(modbus): Fix the mode setup in modbus slave
Browse files Browse the repository at this point in the history
  • Loading branch information
alisitsyn committed Jan 2, 2025
1 parent 25433ad commit bf64894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/protocols/modbus/serial/mb_slave/main/slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void app_main(void)

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

// Setup communication parameters and start stack
// Setup communication mode and start stack
#if CONFIG_MB_COMM_MODE_ASCII
comm_info.mode = MB_MODE_ASCII;
#elif CONFIG_MB_COMM_MODE_RTU
Expand Down

0 comments on commit bf64894

Please sign in to comment.