Merge branch 'bugfix/modbus_fix_compiler_err_when_tcp_is_disabled_v43' into 'release/v4.3'

freemodbus: fix compiler err when tcp is disabled (backport v4.3)

See merge request espressif/esp-idf!14789
This commit is contained in:
Michael (XIAO Xufeng)
2021-11-24 14:13:04 +00:00
4 changed files with 16 additions and 0 deletions

View File

@@ -33,6 +33,8 @@
#include "mbc_tcp_master.h" // for tcp master create function and types
#include "port_tcp_master.h" // for tcp master port defines and types
#if MB_MASTER_TCP_ENABLED
/*-----------------------Master mode use these variables----------------------*/
// The response time is average processing time + data transmission
@@ -725,3 +727,5 @@ esp_err_t mbc_tcp_master_create(void** handler)
return ESP_OK;
}
#endif //#if MB_MASTER_TCP_ENABLED