1
0
Fork 0
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:
blckmn 2017-01-07 09:21:36 +11:00
parent 08e084966f
commit 8483219f46

View file

@ -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;
}