summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-05-09 19:44:56 +0200
committerUros Majstorovic <majstor@majstor.org>2020-05-09 19:44:56 +0200
commitc827937e4599c4144f5d22af2de8e7a802b88be5 (patch)
tree3f3875a9e56983c61a59ab66c8df58ea64b0b4e5
parentd6409bc79af876f527304dad5b28d1bb167ce87e (diff)
wifi driver fix
-rw-r--r--code/esp32/main/app_main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/code/esp32/main/app_main.c b/code/esp32/main/app_main.c
index d2bb704..4a277cf 100644
--- a/code/esp32/main/app_main.c
+++ b/code/esp32/main/app_main.c
@@ -1,3 +1,4 @@
+#include <tcpip_adapter.h>
#include <driver/gpio.h>
#include "i2c.h"
@@ -9,14 +10,18 @@
// Main application
void app_main() {
- eos_i2c_init();
+ tcpip_adapter_init();
+
eos_pcm_init();
gpio_install_isr_service(0);
eos_modem_init();
+
eos_net_init();
eos_cell_init();
eos_wifi_init();
eos_sock_init();
+
+ eos_i2c_init();
eos_bq25895_set_ilim();
}