X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=user_main.c;h=c6ae56740d36e6165f85be9b37d114ca865086c3;hb=a139c6de516968e2a0e7a21c153404eebea94c9e;hp=148477131bdbddf4271e62f9a67a6c8c1d2a9a0c;hpb=a6b9bc4387fe370b7a3cddac157b1b9137847f30;p=esp8266-clock.git diff --git a/user_main.c b/user_main.c index 1484771..c6ae567 100644 --- a/user_main.c +++ b/user_main.c @@ -19,12 +19,11 @@ #include #include -#include "espmissingincludes.h" - #include "project_config.h" #include "clock.h" #include "max7219.h" +#include "ota.h" #include "spi.h" struct station_config wificfg; @@ -114,6 +113,7 @@ void ICACHE_FLASH_ATTR wifi_callback(System_Event_t *evt) break; case EVENT_STAMODE_GOT_IP: ntp_get_time(); + ota_check(); default: break; }