thermald: remove offroad min time condition (#28567)

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 77c9d65a71
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent e600e4d8b4
commit 782ffa1b29
  1. 1
      selfdrive/thermald/thermald.py

@ -282,7 +282,6 @@ def thermald_thread(end_event, hw_queue):
startup_conditions["up_to_date"] = params.get("Offroad_ConnectivityNeeded") is None or params.get_bool("DisableUpdates") or params.get_bool("SnoozeUpdate")
startup_conditions["not_uninstalling"] = not params.get_bool("DoUninstall")
startup_conditions["accepted_terms"] = params.get("HasAcceptedTerms") == terms_version
startup_conditions["offroad_min_time"] = (not started_seen) or ((off_ts is not None) and (sec_since_boot() - off_ts) > 5.)
# with 2% left, we killall, otherwise the phone will take a long time to boot
startup_conditions["free_space"] = msg.deviceState.freeSpacePercent > 2

Loading…
Cancel
Save