From a7b9b301089c31677fe46db7232d215359741134 Mon Sep 17 00:00:00 2001 From: Kilrah Date: Sun, 10 Sep 2017 22:36:55 +0200 Subject: [PATCH] Fix DEBUG=YES build for sky9x family (better fix would be to implement rtcGetTime on the platform) --- radio/src/rtc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/rtc.cpp b/radio/src/rtc.cpp index 0b9e73b7e..a82bbef68 100644 --- a/radio/src/rtc.cpp +++ b/radio/src/rtc.cpp @@ -473,7 +473,7 @@ uint8_t rtcAdjust(uint16_t year, uint8_t mon, uint8_t day, uint8_t hour, uint8_t gtime_t newTime = gmktime(&t) + g_eeGeneral.timezone * 3600; gtime_t diff = (g_rtcTime > newTime) ? (g_rtcTime - newTime) : (newTime - g_rtcTime); -#if defined(DEBUG) +#if defined(DEBUG) && defined (PCBTARANIS) struct gtm utm; rtcGetTime(&utm); gtime_t rtcTime = gmktime(&utm);