@measurequick/measurequick-report-generator 1.2.6 → 1.2.7
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 +8 -8
package/package.json
CHANGED
package/util.js
CHANGED
|
@@ -120,16 +120,16 @@ export function getElectricalData(test) {
|
|
|
120
120
|
aDisplay = (+test.data.amperage_l1).toFixed(1);
|
|
121
121
|
}
|
|
122
122
|
if (vDisplay) {
|
|
123
|
-
if (
|
|
124
|
-
else if (
|
|
125
|
-
else if (
|
|
126
|
-
else if (
|
|
123
|
+
if (test.source['voltage'+src] == 'ComfortGuard') vIcon = "ComfortGuard";
|
|
124
|
+
else if (test.source['voltage'+src] == 'iDVM550') vIcon = "iDVM550";
|
|
125
|
+
else if (test.source['voltage'+src] == 'iDVM510') vIcon = "iDVM510";
|
|
126
|
+
else if (test.source['voltage'+src] == 'Fieldpiece') vIcon = "Fieldpiece";
|
|
127
127
|
}
|
|
128
128
|
if (aDisplay) {
|
|
129
|
-
if (
|
|
130
|
-
else if (
|
|
131
|
-
else if (
|
|
132
|
-
else if (
|
|
129
|
+
if (test.source['amperage'+src] == 'ComfortGuard') aIcon = "ComfortGuard";
|
|
130
|
+
else if (test.source['amperage'+src] == 'iDVM550') aIcon = "iDVM550";
|
|
131
|
+
else if (test.source['amperage'+src] == 'iDVM510') aIcon = "iDVM510";
|
|
132
|
+
else if (test.source['amperage'+src] == 'Fieldpiece') aIcon = "Fieldpiece";
|
|
133
133
|
}
|
|
134
134
|
return { voltage: vDisplay, amperage: aDisplay, voltageIcon: vIcon, amperageIcon: aIcon };
|
|
135
135
|
}
|