[X9D] Analog ref is 3V, not 3.3V

This commit is contained in:
bernet.andre@gmail.com
2013-01-08 09:45:11 +00:00
parent 9812daa0aa
commit 4c24e881c4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2944,8 +2944,8 @@ void perMain()
counter = 10;
#if defined(PCBX9D)
int32_t instant_vbat = anaIn(TX_VOLTAGE);
instant_vbat = ( instant_vbat + instant_vbat*(g_eeGeneral.vBatCalib)/128 ) * 33 ;
instant_vbat /= 512 ;
instant_vbat = ( instant_vbat + instant_vbat*(g_eeGeneral.vBatCalib)/128 ) * 15 ;
instant_vbat /= 256 ;
#elif defined(PCBSKY9X)
int32_t instant_vbat = anaIn(TX_VOLTAGE);
instant_vbat = ( instant_vbat + instant_vbat*(g_eeGeneral.vBatCalib)/128 ) * 4191 ;