From f7f1fb9b9f014219c5ae02411288481f27706753 Mon Sep 17 00:00:00 2001 From: Erin Shepherd Date: Sat, 1 Sep 2018 17:22:21 +0100 Subject: [PATCH] Add no APs found message --- dowsingrod/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dowsingrod/main.py b/dowsingrod/main.py index 1443b06..be93e91 100644 --- a/dowsingrod/main.py +++ b/dowsingrod/main.py @@ -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()