mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
fixes
This commit is contained in:
@ -2,8 +2,6 @@ import os
|
|||||||
import glob
|
import glob
|
||||||
import importlib, importlib.util
|
import importlib, importlib.util
|
||||||
|
|
||||||
# import core
|
|
||||||
|
|
||||||
default_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "default")
|
default_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "default")
|
||||||
loaded = {}
|
loaded = {}
|
||||||
|
|
||||||
|
@ -233,12 +233,12 @@ class View(object):
|
|||||||
if sleeping:
|
if sleeping:
|
||||||
if secs > 1:
|
if secs > 1:
|
||||||
self.set('face', faces.SLEEP)
|
self.set('face', faces.SLEEP)
|
||||||
self.set('status', self._voice.on_napping(secs))
|
self.set('status', self._voice.on_napping(int(secs)))
|
||||||
else:
|
else:
|
||||||
self.set('face', faces.SLEEP2)
|
self.set('face', faces.SLEEP2)
|
||||||
self.set('status', self._voice.on_awakening())
|
self.set('status', self._voice.on_awakening())
|
||||||
else:
|
else:
|
||||||
self.set('status', self._voice.on_waiting(secs))
|
self.set('status', self._voice.on_waiting(int(secs)))
|
||||||
if step % 2 == 0:
|
if step % 2 == 0:
|
||||||
self.set('face', faces.LOOK_R)
|
self.set('face', faces.LOOK_R)
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user