1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 14:25:11 +03:00

[X10] ADC fixed

This commit is contained in:
Bertrand Songis 2019-08-21 17:23:50 +02:00
parent 164988e98f
commit 19165b8315
No known key found for this signature in database
GPG key ID: F189F79290FEC50F

View file

@ -248,7 +248,7 @@ void adcRead()
#if defined(PCBX10) #if defined(PCBX10)
uint16_t getRTCBatteryVoltage() uint16_t getRTCBatteryVoltage()
{ {
return (rtcBatteryVoltage * ADC_VREF_PREC2) / 2048; return (rtcBatteryVoltage * 2 * ADC_VREF_PREC2) / 2048;
} }
#else #else
uint16_t getRTCBatteryVoltage() uint16_t getRTCBatteryVoltage()