mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-07-30 10:27:16 +02:00
Merge branch 'bugfix/fix_modbus_slave_serial_mode' into 'master'
fix(modbus_slave): Fix the mode setup in modbus slave See merge request idf/esp-modbus!84
This commit is contained in:
@ -144,9 +144,9 @@ void app_main(void)
|
|||||||
|
|
||||||
// Setup communication parameters and start stack
|
// Setup communication parameters and start stack
|
||||||
#if CONFIG_MB_COMM_MODE_ASCII
|
#if CONFIG_MB_COMM_MODE_ASCII
|
||||||
comm_info.mode = MB_MODE_ASCII,
|
comm_info.mode = MB_MODE_ASCII;
|
||||||
#elif CONFIG_MB_COMM_MODE_RTU
|
#elif CONFIG_MB_COMM_MODE_RTU
|
||||||
comm_info.mode = MB_MODE_RTU,
|
comm_info.mode = MB_MODE_RTU;
|
||||||
#endif
|
#endif
|
||||||
comm_info.slave_addr = MB_SLAVE_ADDR;
|
comm_info.slave_addr = MB_SLAVE_ADDR;
|
||||||
comm_info.port = MB_PORT_NUM;
|
comm_info.port = MB_PORT_NUM;
|
||||||
|
Reference in New Issue
Block a user