Corrections by Max

This commit is contained in:
bsongis
2012-04-11 13:33:46 +00:00
parent d057d1f441
commit 96cf8df98e
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -2507,8 +2507,9 @@ int main(void)
if(cModel!=g_eeGeneral.currModel) eeDirty(EE_GENERAL); // if model was quick-selected, make sure it sticks
#if defined (PCBV4)
// Initialise global unix timestamp with current time from RTC chip on SD card interface
RTC rtc;
// TODO move this code inside board_gruvin9x.cpp
// Initialise global unix timestamp with current time from RTC chip on SD card interface
RTC rtc = {0,0,0,0,0,0,0};
struct gtm utm;
rtc_gettime(&rtc);
utm.tm_year = rtc.year - 1900;