Add no APs found message

sammachin-gprs
Erin Shepherd 2018-09-01 17:22:21 +01:00
parent acb5270f16
commit f7f1fb9b9f
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ while not Buttons.is_pressed(Buttons.BTN_Menu):
for ap in aps[:20]:
ugfx.Label(0, y, 240, 25, "{1}dB {0}".format(*ap))
y += status_height
if len(aps) == 0:
ugfx.Label(0, y, 240, 25, "No emfcamp-legacy18 APs found")
ugfx.clear()
app.restart_to_default()