1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 00:05:17 +03:00

Fix X7 battery voltage calibration

This commit is contained in:
Andre Bernet 2016-12-13 12:16:36 +01:00
parent 82d6b96f8b
commit 6f325886a1

View file

@ -390,7 +390,11 @@ extern uint16_t adcValues[NUMBER_ANALOG];
uint16_t getAnalogValue(uint8_t index);
uint16_t getBatteryVoltage(); // returns current battery voltage in 10mV steps
#define BATT_SCALE 150
#if defined(PCBX7)
#define BATT_SCALE 123
#else
#define BATT_SCALE 150
#endif
#if defined(__cplusplus) && !defined(SIMU)
extern "C" {