mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
Update slave.c to fix the mode
There is an issue in the lines that I have changed. I think it was copied over from the enum by mistake.
This commit is contained in:
parent
245fb725f2
commit
32b86e8dcd
@ -101,9 +101,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user