X12S RTC voltage fix

This commit is contained in:
Bertrand Songis
2019-10-01 15:57:27 +02:00
parent 8b598be7bf
commit 2a41bf086a
+1 -1
View File
@@ -139,7 +139,7 @@ void adcInit()
uint16_t getRTCBatteryVoltage()
{
return (rtcBatteryVoltage * ADC_VREF_PREC2) / 2048;
return (rtcBatteryVoltage * 2 * ADC_VREF_PREC2) / 2048;
}
const uint16_t adcCommands[MOUSE1+2] =