From 7a23dc61a28a3c3d6ee7dd36c7895246da4da879 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 15 Oct 2025 19:43:36 -0700 Subject: [PATCH] oops rm that --- userspace/usr/comma/power_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/usr/comma/power_monitor.py b/userspace/usr/comma/power_monitor.py index 3cacc9e..fcfcec3 100755 --- a/userspace/usr/comma/power_monitor.py +++ b/userspace/usr/comma/power_monitor.py @@ -57,7 +57,7 @@ if __name__ == "__main__": # time to shutoff? dt = timedelta(seconds=time.monotonic() - max(timestamps.values())) - if dt > THRESHOLD and not_engaged: + if dt > THRESHOLD: os.system("sudo poweroff") print((THRESHOLD - dt), "until shutdown", f"/ {timestamps=}")