mirror of
https://github.com/espressif/esp-idf.git
synced 2026-01-09 18:52:08 +00:00
examples: change max register area size to maximum value
esp-idf/components/freemodbus/modbus_controller/modbus_controller.c: The MB_INST_MAX_SIZE is changed to max value=(65535*2); Update support for coils read into freemodbus.c; TW#28143 Closes https://github.com/espressif/esp-idf/issues/2884
This commit is contained in:
@@ -129,7 +129,8 @@ void app_main()
|
||||
mb_event_group_t event = mbcontroller_check_event((MB_EVENT_HOLDING_REG_WR
|
||||
| MB_EVENT_INPUT_REG_RD
|
||||
| MB_EVENT_HOLDING_REG_RD
|
||||
| MB_EVENT_DISCRETE_RD));
|
||||
| MB_EVENT_DISCRETE_RD
|
||||
| MB_EVENT_COILS_RD));
|
||||
// Filter events and process them accordingly
|
||||
if((event & MB_EVENT_HOLDING_REG_WR) || (event & MB_EVENT_HOLDING_REG_RD)) {
|
||||
// Get parameter information from parameter queue
|
||||
|
||||
Reference in New Issue
Block a user