diff --git a/.idea/pwnagotchi.iml b/.idea/pwnagotchi.iml index 67a8fbf3..451a05a2 100644 --- a/.idea/pwnagotchi.iml +++ b/.idea/pwnagotchi.iml @@ -2,6 +2,7 @@ + diff --git a/pwnagotchi/ui/hw/dummydisplay.py b/pwnagotchi/ui/hw/dummydisplay.py index cfae47a5..fde83696 100644 --- a/pwnagotchi/ui/hw/dummydisplay.py +++ b/pwnagotchi/ui/hw/dummydisplay.py @@ -25,7 +25,7 @@ class DummyDisplay(DisplayImpl): self._layout['friend_name'] = (int(width/12), int(height/10)) self._layout['shakes'] = (0, height-int(height/25)) self._layout['mode'] = (width-int(width/8), height - int (height/25)) - lw, lh = fonts.Small.getsize("W") + lw, lh = fonts.Small.getbbox("W") self._layout['status'] = { 'pos': (int(width/48), int(height/3)), 'font': fonts.status_font(fonts.Small), diff --git a/pyproject.toml b/pyproject.toml index 11865033..8b49007a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ dependencies = [ "PyYAML", "dbus-python", "file-read-backwards", "flask", "flask-cors", "flask-wtf", "gast", "gpiozero", "inky", "numpy", "pycryptodome", "pydrive2", "python-dateutil", "requests", "rpi-lgpio", "rpi_hardware_pwm", "scapy", "setuptools", "shimmy", "smbus", "smbus2", - "spidev", "toml", "tweepy", "websockets", + "spidev", "toml", "tweepy", "websockets", "prctl", ] requires-python = ">=3.11"