From 4dea6262b57f614cabd5cf4fa96c1e3d83c45fb4 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 24 Feb 2021 19:54:18 +0100 Subject: upgraded to esp-idf 4.2 --- fw/esp32/main/app_main.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'fw/esp32/main/app_main.c') diff --git a/fw/esp32/main/app_main.c b/fw/esp32/main/app_main.c index 4babcdc..8374c45 100644 --- a/fw/esp32/main/app_main.c +++ b/fw/esp32/main/app_main.c @@ -1,9 +1,11 @@ #include #include -#include #include -#include +#include +#include +#include +#include #include "i2c.h" #include "cell.h" @@ -17,7 +19,13 @@ // Main application void app_main() { - tcpip_adapter_init(); + esp_err_t ret; + + ret = esp_netif_init(); + assert(ret == ESP_OK); + + ret = esp_event_loop_create_default(); + assert(ret == ESP_OK); eos_net_init(); -- cgit v1.2.3