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
|
|
@ -167,7 +167,8 @@ export function dragerGasDongle(subtype: number = 0): ComponentTypeExtension {
|
|||
lines: [],
|
||||
average: []
|
||||
};
|
||||
if (subtype === quack.DragerGasDongleSubtype.DRAGER_GAS_DONGLE_SUBTYPE_O2) {
|
||||
//sets the value as a percent for the chart data
|
||||
if (subtype === quack.DragerGasDongleSubtype.DRAGER_GAS_DONGLE_SUBTYPE_O2 || subtype === quack.DragerGasDongleSubtype.DRAGER_GAS_DONGLE_SUBTYPE_LEL) {
|
||||
let firstTime: Moment | undefined;
|
||||
let lastTime: Moment | undefined;
|
||||
let valMap: Map<number, number[]> = new Map<number, number[]>();
|
||||
|
|
|
|||
|
|
@ -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