RTC battery voltage fix

This commit is contained in:
Bertrand Songis
2019-08-14 17:30:07 +02:00
parent 1d28f12c60
commit 3c3be7497f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ void adcInit()
uint16_t getRTCBatteryVoltage()
{
return rtcBatteryVoltage * 330 / 2048;
return (rtcBatteryVoltage * ADC_VREF_PREC2) / 2048;
}
const uint16_t adcCommands[MOUSE1+2] =