Skip to content

Commit

Permalink
fix(cpn): missing telem unit strings (#4968)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick committed May 6, 2024
1 parent 4b6c99a commit ec215b6
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions companion/src/firmwares/sensordata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ QString SensorData::unitToString(const int value, bool hideRaw)
return tr("kts");
case UNIT_METERS_PER_SECOND:
return tr("m/s");
case UNIT_FEET_PER_SECOND:
return tr("f/s");
case UNIT_KMH:
return tr("km/h");
case UNIT_MPH:
Expand Down Expand Up @@ -387,14 +389,10 @@ QString SensorData::unitToString(const int value, bool hideRaw)
return tr("°");
case UNIT_RADIANS:
return tr("Rad");
case UNIT_HOURS:
return tr("hours");
case UNIT_MINUTES:
return tr("minutes");
case UNIT_SECONDS:
return tr("seconds");
case UNIT_CELLS:
return tr("V");
case UNIT_MILLILITERS:
return tr("ml");
case UNIT_FLOZ:
return tr("fl.oz");
case UNIT_MILLILITERS_PER_MINUTE:
return tr("ml/minute");
case UNIT_HERZ:
Expand All @@ -403,6 +401,14 @@ QString SensorData::unitToString(const int value, bool hideRaw)
return tr("mS");
case UNIT_US:
return tr("uS");
case UNIT_HOURS:
return tr("hours");
case UNIT_MINUTES:
return tr("minutes");
case UNIT_SECONDS:
return tr("seconds");
case UNIT_CELLS:
return tr("V");
default:
return CPN_STR_UNKNOWN_ITEM;
}
Expand Down

0 comments on commit ec215b6

Please sign in to comment.