[X9D] Battery voltage scale on calib page, double reboot sign

This commit is contained in:
bernet.andre@gmail.com
2013-03-13 13:54:10 +00:00
parent 36e6751f73
commit cee86dd968
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -922,8 +922,8 @@ void menuGeneralDiagAna(uint8_t event)
lcd_putsLeft(5*FH+1, STR_BATT_CALIB);
static uint32_t adcBatt;
adcBatt = ((adcBatt * 7) + anaIn(8)) / 8; // running average, sourced directly (to avoid unending debate :P)
uint32_t batCalV = ( adcBatt + adcBatt*(g_eeGeneral.vBatCalib)/128 ) * 15 ;
batCalV /= 256 ;
uint32_t batCalV = ( adcBatt + adcBatt*(g_eeGeneral.vBatCalib)/128 ) * BATT_SCALE;
batCalV >>= 11;
putsVolts(LEN_CALIB_FIELDS*FW+4*FW, 5*FH+1, batCalV, (m_posVert==1 ? INVERS : 0));
#else
lcd_putsLeft(6*FH-2, STR_BATT_CALIB);