X12S RTC voltage fix
This commit is contained in:
@@ -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] =
|
||||
|
||||
Reference in New Issue
Block a user