missed the measurement describer part
This commit is contained in:
parent
ee4ecb0036
commit
b604481d43
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue