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:
parent
164988e98f
commit
19165b8315
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue