Skip to content

Commit

Permalink
Fix DEBUG=YES build for sky9x family (better fix would be to implemen…
Browse files Browse the repository at this point in the history
…t rtcGetTime on the platform)
  • Loading branch information
kilrah committed Sep 10, 2017
1 parent 6a2a730 commit a7b9b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/rtc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a7b9b30

Please sign in to comment.