X-Git-Url: https://the.earth.li/gitweb/?p=esp8266-clock.git;a=blobdiff_plain;f=user_main.c;h=c6ae56740d36e6165f85be9b37d114ca865086c3;hp=0ec605604293ea8c4fb45ac807379e2b06a4f1e8;hb=a139c6de516968e2a0e7a21c153404eebea94c9e;hpb=648045c23ec74fafc4416cfd27b8ce6a091d8a35 diff --git a/user_main.c b/user_main.c index 0ec6056..c6ae567 100644 --- a/user_main.c +++ b/user_main.c @@ -23,6 +23,7 @@ #include "clock.h" #include "max7219.h" +#include "ota.h" #include "spi.h" struct station_config wificfg; @@ -112,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; }