mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-26 01:35:16 +03:00
Fixes #2382: Vario only showing positive values (reverted from commit a88cace888
)
This commit is contained in:
parent
a88cace888
commit
56c249326f
1 changed files with 2 additions and 4 deletions
|
@ -600,11 +600,9 @@ int32_t TelemetrySensor::getValue(int32_t value, uint8_t unit, uint8_t prec) con
|
|||
if (type == TELEM_TYPE_CUSTOM) {
|
||||
value += custom.offset;
|
||||
if (value < 0 && unit >= UNIT_VOLTS && unit <= UNIT_MPH) {
|
||||
// allow negative value for Vario VSPEED
|
||||
if (id < VARIO_FIRST_ID && id > VARIO_LAST_ID) {
|
||||
value = 0;
|
||||
}
|
||||
value = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue