From d844200a16c8759bfd1e8580ae4b642bb7ee59ea Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Wed, 23 Aug 2017 04:53:17 -0400 Subject: [PATCH] cron: don't include rtctime_internal.h That file is supposed to only be included once because it does things like declare static globals. As it stands, cron doesn't believe time is ticking. Fixes nodemcu/nodemcu-firmware#2080 --- app/modules/cron.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/modules/cron.c b/app/modules/cron.c index 8d93b6af8b..23f2c02b0f 100644 --- a/app/modules/cron.c +++ b/app/modules/cron.c @@ -8,7 +8,6 @@ #include "c_string.h" #include "ets_sys.h" #include "time.h" -#include "rtc/rtctime_internal.h" #include "rtc/rtctime.h" #include "stdlib.h" #include "mem.h" @@ -189,7 +188,7 @@ static void cron_handle_time(uint8_t mon, uint8_t dom, uint8_t dow, uint8_t hour static void cron_handle_tmr() { struct rtc_timeval tv; - rtc_time_gettimeofday(&tv); + rtctime_gettimeofday(&tv); if (tv.tv_sec == 0) { // Wait for RTC time ets_timer_arm_new(&cron_timer, 1000, 0, 1); return;