Skip to content

Commit 80e9348

Browse files
authored
Merge pull request #5 from mcecchi/dev/showQualityInDBmAndSort
Show quality in dBm with correct sort
2 parents 4bc3e7a + 869e3ef commit 80e9348

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

octoprint_netconnectd/static/js/netconnectd.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ $(function() {
151151
var qualityInt = parseInt(wifi.quality);
152152
var quality = undefined;
153153
if (!isNaN(qualityInt)) {
154-
if (qualityInt <= 0) {
155-
qualityInt = (-1) * qualityInt;
156-
}
157154
quality = qualityInt;
158155
}
159156

@@ -162,7 +159,7 @@ $(function() {
162159
address: wifi.address,
163160
encrypted: wifi.encrypted,
164161
quality: quality,
165-
qualityText: (quality != undefined) ? "" + quality + "%" : undefined
162+
qualityText: (quality != undefined) ? "" + quality + " dBm" : undefined
166163
});
167164
});
168165

0 commit comments

Comments
 (0)