mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 19:12:07 +08:00
log when thermald shuts down device
old-commit-hash: a46d2f5b17cc24102f26674a2102a0044b3e84e6
This commit is contained in:
@@ -409,6 +409,7 @@ def thermald_thread():
|
||||
|
||||
# Check if we need to shut down
|
||||
if pm.should_shutdown(health, off_ts, started_seen, LEON):
|
||||
cloudlog.info(f"shutting device down, offroad for {off_ts}")
|
||||
os.system('LD_LIBRARY_PATH="" svc power shutdown')
|
||||
|
||||
msg.thermal.chargingError = current_filter.x > 0. and msg.thermal.batteryPercent < 90 # if current is positive, then battery is being discharged
|
||||
|
||||
Reference in New Issue
Block a user