Corrections by Max
This commit is contained in:
@@ -648,7 +648,7 @@ void menuProcDiagAna(uint8_t event)
|
|||||||
uint8_t x = i&1 ? 64+5 : 0;
|
uint8_t x = i&1 ? 64+5 : 0;
|
||||||
putsStrIdx(x, y, PSTR("A"), i+1, TWO_DOTS);
|
putsStrIdx(x, y, PSTR("A"), i+1, TWO_DOTS);
|
||||||
lcd_outhex4(x+3*FW-1, y, anaIn(i));
|
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)
|
#if !defined(PCBARM)
|
||||||
|
|||||||
+3
-2
@@ -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(cModel!=g_eeGeneral.currModel) eeDirty(EE_GENERAL); // if model was quick-selected, make sure it sticks
|
||||||
|
|
||||||
#if defined (PCBV4)
|
#if defined (PCBV4)
|
||||||
// Initialise global unix timestamp with current time from RTC chip on SD card interface
|
// TODO move this code inside board_gruvin9x.cpp
|
||||||
RTC rtc;
|
// 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;
|
struct gtm utm;
|
||||||
rtc_gettime(&rtc);
|
rtc_gettime(&rtc);
|
||||||
utm.tm_year = rtc.year - 1900;
|
utm.tm_year = rtc.year - 1900;
|
||||||
|
|||||||
Reference in New Issue
Block a user