1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

honor report_cell_voltage for DIY frsky modules

This commit is contained in:
Thorsten Laux 2018-05-26 11:48:00 +02:00
parent 71a1a9789a
commit 0ab4cf05c5

View file

@ -404,6 +404,9 @@ static void sendVoltageAmp(void)
if (telemetryConfig()->frsky_vfas_precision == FRSKY_VFAS_PRECISION_HIGH) {
// Use new ID 0x39 to send voltage directly in 0.1 volts resolution
if (telemetryConfig()->report_cell_voltage && cellCount) {
voltage /= cellCount;
}
frSkyHubWriteFrame(ID_VOLTAGE_AMP, voltage);
} else {
// send in 0.2 volts resolution