From 152676f65115ed6c5e686dbbc937b0e910b54bc6 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli <evilsocket@gmail.com> Date: Sun, 20 Oct 2019 18:51:33 +0200 Subject: [PATCH] fix: don't show sad face in manual mode for very short sessions --- pwnagotchi/ui/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/ui/view.py b/pwnagotchi/ui/view.py index 506b800..977dbe8 100644 --- a/pwnagotchi/ui/view.py +++ b/pwnagotchi/ui/view.py @@ -138,7 +138,7 @@ class View(object): def on_manual_mode(self, last_session): self.set('mode', 'MANU') - self.set('face', faces.SAD if last_session.handshakes == 0 else faces.HAPPY) + self.set('face', faces.SAD if (last_session.epochs > 3 and last_session.handshakes == 0) else faces.HAPPY) self.set('status', self._voice.on_last_session_data(last_session)) self.set('epoch', "%04d" % last_session.epochs) self.set('uptime', last_session.duration)