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:
parent
82d6b96f8b
commit
6f325886a1
1 changed files with 5 additions and 1 deletions
|
@ -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" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue