set the LEL to display as a percent the same as O2
This commit is contained in:
parent
e340a9ce90
commit
6c5ba5315e
2 changed files with 4 additions and 2 deletions
|
|
@ -334,6 +334,7 @@ export class MeasurementDescriber {
|
|||
this.details.unit = "mV";
|
||||
break;
|
||||
case quack.DragerGasDongleSubtype.DRAGER_GAS_DONGLE_SUBTYPE_O2:
|
||||
case quack.DragerGasDongleSubtype.DRAGER_GAS_DONGLE_SUBTYPE_LEL:
|
||||
this.details.colour = blue["400"];
|
||||
this.details.decimals = 1;
|
||||
this.details.unit = "%";
|
||||
|
|
@ -342,7 +343,7 @@ export class MeasurementDescriber {
|
|||
mode: "toStored" | "toDisplay"
|
||||
): number => {
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue