mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
vbat moved to getvbat()
This commit is contained in:
parent
08e084966f
commit
8483219f46
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ static void dispatchMeasurementReply(ibusAddress_t address)
|
|||
|
||||
switch (sensorAddressTypeLookup[address - ibusBaseAddress]) {
|
||||
case IBUS_SENSOR_TYPE_EXTERNAL_VOLTAGE:
|
||||
value = vbat * 10;
|
||||
value = getVbat() * 10;
|
||||
if (ibusTelemetryConfig()->report_cell_voltage) {
|
||||
value /= batteryCellCount;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue