mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-02 21:48:13 +00:00
freemodbus: fix compiler err when tcp is disabled (backport v4.3)
This commit is contained in:
committed by
Michael (XIAO Xufeng)
parent
605c1b16f0
commit
de7f5305a7
@@ -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
|
||||
@@ -714,3 +716,5 @@ esp_err_t mbc_tcp_master_create(void** handler)
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
#endif //#if MB_MASTER_TCP_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user