From 9fcc398540423d1d8efd6599f017f265d2f65a55 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Fri, 21 Jun 2024 17:12:07 -0300 Subject: [PATCH] allow auto driver init --- examples/arduino/w5500-http/mongoose_config.h | 1 + examples/arduino/w5500-mqtt/mongoose_config.h | 1 + mongoose.h | 3 --- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/arduino/w5500-http/mongoose_config.h b/examples/arduino/w5500-http/mongoose_config.h index 5dec7d0a..dc8f7b61 100644 --- a/examples/arduino/w5500-http/mongoose_config.h +++ b/examples/arduino/w5500-http/mongoose_config.h @@ -11,6 +11,7 @@ #define MG_ENABLE_SOCKET 0 #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_DRIVER_W5500 1 +#define MG_ENABLE_TCPIP_DRIVER_INIT 0 #define mkdir(a, b) (-1) #define MG_IO_SIZE 128 //#define MG_ENABLE_LOG 0 diff --git a/examples/arduino/w5500-mqtt/mongoose_config.h b/examples/arduino/w5500-mqtt/mongoose_config.h index 5abe0440..2a74d06b 100644 --- a/examples/arduino/w5500-mqtt/mongoose_config.h +++ b/examples/arduino/w5500-mqtt/mongoose_config.h @@ -11,6 +11,7 @@ #define MG_ENABLE_SOCKET 0 #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_DRIVER_W5500 1 +#define MG_ENABLE_TCPIP_DRIVER_INIT 0 #define mkdir(a, b) (-1) #define MG_IO_SIZE 512 //#define MG_ENABLE_LOG 0 diff --git a/mongoose.h b/mongoose.h index 5a68c8d9..3b137349 100644 --- a/mongoose.h +++ b/mongoose.h @@ -3053,9 +3053,6 @@ struct mg_tcpip_driver_tm4c_data { #if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_W5500) && MG_ENABLE_DRIVER_W5500 -#undef MG_ENABLE_TCPIP_DRIVER_INIT -#define MG_ENABLE_TCPIP_DRIVER_INIT 0 - #endif