@measurequick/measurequick-report-generator 1.5.226 → 1.5.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util.js +27 -28
package/package.json
CHANGED
package/util.js
CHANGED
|
@@ -408,34 +408,33 @@ export function getElectricalData(test, suffix, embeddedIcons) {
|
|
|
408
408
|
if (!aSource) aSource = test.source[aMultimeterKey];
|
|
409
409
|
if (!aSource) aSource = test.source["amperage_multimeter"];
|
|
410
410
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
411
|
+
// Set icons based on source - don't require vDisplay/aDisplay to be set
|
|
412
|
+
// This ensures icons show up even if the display value logic doesn't match
|
|
413
|
+
if (vSource == "ComfortGuard")
|
|
414
|
+
vIcon = embeddedIcons.iconSensi;
|
|
415
|
+
else if (vSource == "iDVM550" || vSource == "iDVM-550")
|
|
416
|
+
vIcon = embeddedIcons.iconRedfish550;
|
|
417
|
+
else if (vSource == "VOLT-100")
|
|
418
|
+
vIcon = embeddedIcons.iconVolt100;
|
|
419
|
+
else if (vSource == "iDVM510" || vSource == "iDVM-510")
|
|
420
|
+
vIcon = embeddedIcons.iconRedfish510;
|
|
421
|
+
else if (vSource == "Fieldpiece")
|
|
422
|
+
vIcon = embeddedIcons.iconFieldpiece;
|
|
423
|
+
else if (vSource == "UEi HAC" || vSource == "UEi DL599")
|
|
424
|
+
vIcon = embeddedIcons.iconUei;
|
|
425
|
+
|
|
426
|
+
if (aSource == "ComfortGuard")
|
|
427
|
+
aIcon = embeddedIcons.iconSensi;
|
|
428
|
+
else if (aSource == "iDVM550" || aSource == "iDVM-550")
|
|
429
|
+
aIcon = embeddedIcons.iconRedfish550;
|
|
430
|
+
else if (aSource == "VOLT-100")
|
|
431
|
+
aIcon = embeddedIcons.iconVolt100;
|
|
432
|
+
else if (aSource == "iDVM510" || aSource == "iDVM-510")
|
|
433
|
+
aIcon = embeddedIcons.iconRedfish510;
|
|
434
|
+
else if (aSource == "Fieldpiece")
|
|
435
|
+
aIcon = embeddedIcons.iconFieldpiece;
|
|
436
|
+
else if (aSource == "UEi HAC" || aSource == "UEi DL599")
|
|
437
|
+
aIcon = embeddedIcons.iconUei;
|
|
439
438
|
return {
|
|
440
439
|
voltage: vDisplay,
|
|
441
440
|
amperage: aDisplay,
|