From 3802eab361fd386e0c2778a7f9d88d7835a86c05 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 15 Oct 2021 15:04:19 -0700 Subject: [PATCH] only check low battery on EON old-commit-hash: 74a3c92704b1d6597002d6c5da020ba8ff4393a1 --- selfdrive/controls/controlsd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index da2d75acb8..06970498d7 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -194,7 +194,8 @@ class Controls: return # Create events for battery, temperature, disk space, and memory - if EON and self.sm['deviceState'].batteryPercent < 1 and self.sm['deviceState'].chargingError: + if EON and (self.sm['peripheralState'].pandaType != PandaType.uno) and \ + self.sm['deviceState'].batteryPercent < 1 and self.sm['deviceState'].chargingError: # at zero percent battery, while discharging, OP should not allowed self.events.add(EventName.lowBattery) if self.sm['deviceState'].thermalStatus >= ThermalStatus.red: