[X10] ADC fixed

This commit is contained in:
Bertrand Songis
2019-08-21 17:23:50 +02:00
parent 164988e98f
commit 19165b8315
@@ -248,7 +248,7 @@ void adcRead()
#if defined(PCBX10)
uint16_t getRTCBatteryVoltage()
{
return (rtcBatteryVoltage * ADC_VREF_PREC2) / 2048;
return (rtcBatteryVoltage * 2 * ADC_VREF_PREC2) / 2048;
}
#else
uint16_t getRTCBatteryVoltage()