mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 16:26:14 +08:00
only check low battery on EON
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user