From 087fd9cf096c252dc14a2d12dd84f63de0c687df Mon Sep 17 00:00:00 2001 From: jayofelony Date: Sun, 30 Jun 2024 20:07:53 +0200 Subject: [PATCH] Revert Signed-off-by: jayofelony --- bin/pwnagotchi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/pwnagotchi b/bin/pwnagotchi index cfafc990..234cb374 100755 --- a/bin/pwnagotchi +++ b/bin/pwnagotchi @@ -60,10 +60,8 @@ def pwnagotchi_cli(): channels = agent.get_access_points_by_channel() # for each channel for ch, aps in channels: - while True: - agent.set_channel(ch) - if agent.get_current_channel() == ch: - break + time.sleep(1) + agent.set_channel(ch) if not agent.is_stale() and agent.any_activity(): logging.info("%d access points on channel %d" % (len(aps), ch))