missed the measurement describer part

This commit is contained in:
csawatzky 2025-05-23 11:38:18 -06:00
parent ee4ecb0036
commit b604481d43

View file

@ -334,6 +334,7 @@ export class MeasurementDescriber {
this.details.unit = "mV"; this.details.unit = "mV";
break; break;
case quack.DragerGasDongleSubtype.DRAGER_GAS_DONGLE_SUBTYPE_O2: case quack.DragerGasDongleSubtype.DRAGER_GAS_DONGLE_SUBTYPE_O2:
case quack.DragerGasDongleSubtype.DRAGER_GAS_DONGLE_SUBTYPE_LEL:
this.details.colour = blue["400"]; this.details.colour = blue["400"];
this.details.decimals = 1; this.details.decimals = 1;
this.details.unit = "%"; this.details.unit = "%";
@ -342,7 +343,7 @@ export class MeasurementDescriber {
mode: "toStored" | "toDisplay" mode: "toStored" | "toDisplay"
): number => { ): number => {
if (mode === "toStored") { if (mode === "toStored") {
//for O2 dragers the display is in percentage so convert the percent to ppm //for O2/LEL dragers the display is in percentage so convert the percent to ppm
return value * 10000; return value * 10000;
} }
return value / 10000; return value / 10000;