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
+1 -1
View File
@@ -648,7 +648,7 @@ void menuProcDiagAna(uint8_t event)
uint8_t x = i&1 ? 64+5 : 0;
putsStrIdx(x, y, PSTR("A"), i+1, TWO_DOTS);
lcd_outhex4(x+3*FW-1, y, anaIn(i));
lcd_outdez8(x+10*FW-1, y, (int16_t)calibratedStick[i]*25/256);
lcd_outdez8(x+10*FW-1, y, (int16_t)calibratedStick[CONVERT_MODE(i+1)-1]*25/256);
}
#if !defined(PCBARM)
+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;