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:
parent
71a1a9789a
commit
0ab4cf05c5
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue