mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
add compile time checks for MB_MASTER_TCP_ENABLED
Signed-off-by: AshUK <github.AshUK@outlook.com>
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
#include "mbc_tcp_slave.h" // for tcp slave mb controller defines
|
||||
#include "port_tcp_slave.h" // for tcp slave port defines
|
||||
|
||||
#if MB_TCP_ENABLED
|
||||
|
||||
// Shared pointer to interface structure
|
||||
static mb_slave_interface_t* mbs_interface_ptr = NULL;
|
||||
|
||||
@@ -221,3 +223,5 @@ esp_err_t mbc_tcp_slave_create(void** handler)
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
#endif //#if MB_TCP_ENABLED
|
||||
|
Reference in New Issue
Block a user