mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-23 08:15:13 +03:00
Fix lots of broken stuff in companion telemetry sensor handling, sync displayed items/units/formulas with firmware (should fix #2285)
This commit is contained in:
parent
6d0537988f
commit
28e92d964a
6 changed files with 81 additions and 54 deletions
|
@ -95,8 +95,8 @@ QString getGVarString(int16_t val, bool sign)
|
|||
|
||||
void SensorData::updateUnit()
|
||||
{
|
||||
if (type == TYPE_CALCULATED) {
|
||||
if (formula == FORMULA_CONSUMPTION)
|
||||
if (type == TELEM_TYPE_CALCULATED) {
|
||||
if (formula == TELEM_FORMULA_CONSUMPTION)
|
||||
unit = UNIT_MAH;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue