From c0ac87c36c053fd1a3454b19323a7e4f5cef9ed3 Mon Sep 17 00:00:00 2001 From: eFini Date: Thu, 30 Mar 2023 09:01:53 +0800 Subject: [PATCH] Update power_monitoring.py --- selfdrive/thermald/power_monitoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/thermald/power_monitoring.py b/selfdrive/thermald/power_monitoring.py index f710296f8..2598b084e 100644 --- a/selfdrive/thermald/power_monitoring.py +++ b/selfdrive/thermald/power_monitoring.py @@ -190,7 +190,7 @@ class PowerMonitoring: should_shutdown = False # Wait until we have shut down charging before powering down - should_shutdown |= (not panda_charging and self.should_disable_charging(ignition, in_car, offroad_timestamp)) + should_shutdown |= (not panda_charging and self.should_disable_charging(ignition, in_car, offroad_timestamp, started_seen)) # should_shutdown |= ((HARDWARE.get_battery_capacity() < BATT_PERC_OFF) and (not HARDWARE.get_battery_charging()) and ((now - offroad_timestamp) > 60)) should_shutdown &= started_seen or (now > MIN_ON_TIME_S) return should_shutdown