Version 2.6.9

This commit is contained in:
Jeroen Oudshoorn
2024-01-14 09:41:39 +01:00
parent b03b3119c7
commit 18217119fc
5 changed files with 12 additions and 9 deletions

View File

@ -1 +1 @@
__version__ = '2.6.8'
__version__ = '2.6.9'

View File

@ -105,7 +105,7 @@ class FixServices(plugins.Plugin):
other_last_lines = ''.join(list(TextIOWrapper(subprocess.Popen(['journalctl', '-n10'],
stdout=subprocess.PIPE).stdout))[-10:])
other_other_last_lines = ''.join(
list(TextIOWrapper(subprocess.Popen(['tail', '-n10', '/var/log/pwnagotchi.log'],
list(TextIOWrapper(subprocess.Popen(['tail', '-n10', '/home/pi/logs/pwnagotchi.log'],
stdout=subprocess.PIPE).stdout))[-10:])
# don't check if we ran a reset recently
logging.debug("[Fix_Services]**** epoch")

View File

@ -141,7 +141,7 @@ class MemTemp(plugins.Plugin):
elif ui.is_inky():
h_pos = (140, 68)
v_pos = (160, 54)
elif ui.is_waveshare27inch():
elif ui.is_waveshare2in7():
h_pos = (192, 138)
v_pos = (211, 122)
else:

View File

@ -444,7 +444,10 @@ def iface_channels(ifname):
output = subprocess.getoutput("/sbin/iw phy%s channels | grep ' MHz' | grep -v disabled | sed 's/^.*\[//g' | sed s/\].*\$//g" % phy)
for line in output.split("\n"):
line = line.strip()
channels.append(int(line))
try:
channels.append(int(line))
except Exception as e:
pass
return channels