From eb9e2da467537af9fe28723a7a2f572b3c178906 Mon Sep 17 00:00:00 2001 From: Tester23 Date: Tue, 19 Dec 2023 22:22:03 +0100 Subject: [PATCH] fix --- src/driver/drv_ntp_events.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/driver/drv_ntp_events.c b/src/driver/drv_ntp_events.c index 9e3767a43..de56d3583 100644 --- a/src/driver/drv_ntp_events.c +++ b/src/driver/drv_ntp_events.c @@ -158,14 +158,14 @@ static int calc_day_offset(int tm_wday, int weekDayFlags) } return (day_offset); } -#endif - void NTP_CalculateSunrise(byte *outHour, byte *outMinute) { - dusk2Dawn(&sun_data, SUNRISE_FLAG, outHour, outMinute, 0); + dusk2Dawn(&sun_data, SUNRISE_FLAG, outHour, outMinute, 0); } void NTP_CalculateSunset(byte *outHour, byte *outMinute) { dusk2Dawn(&sun_data, SUNSET_FLAG, outHour, outMinute, 0); } +#endif + void NTP_RunEventsForSecond(unsigned int runTime) { ntpEvent_t *e; struct tm *ltm;