cli_pretty: Wi-Fi: signal-strenght to text was inverted

Should be like this:
  ┌────────────┬────────────────────┐
  │ RSSI (dBm) │       Status       │
  ├────────────┼────────────────────┤
  │ ≥ -50      │ excellent (strong) │
  ├────────────┼────────────────────┤
  │ -60 to -51 │ good               │
  ├────────────┼────────────────────┤
  │ -70 to -61 │ poor               │
  ├────────────┼────────────────────┤
  │ < -70      │ bad (weak)         │
  └────────────┴────────────────────┘
This commit is contained in:
Mattias Walström
2026-01-27 11:09:54 +01:00
parent 01e82547f7
commit 2b5e4e92f1
+2 -2
View File
@@ -568,9 +568,9 @@ class Decore():
def signal_to_status(signal):
if signal >= -50:
status = Decore.bright_green("excellent")
elif signal <= -65:
elif signal >= -60:
status = Decore.green("good")
elif signal <= -50:
elif signal >= -70:
status = Decore.yellow("poor")
else:
status = Decore.red("bad")