mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 10:32:10 +08:00
log on startup if onroad flag set (#21150)
old-commit-hash: 96271f8bc3187711c5fd879a0a4048ff9e42e979
This commit is contained in:
@@ -174,6 +174,7 @@ std::unordered_map<std::string, uint32_t> keys = {
|
||||
{"IsLdwEnabled", PERSISTENT},
|
||||
{"IsMetric", PERSISTENT},
|
||||
{"IsOffroad", CLEAR_ON_MANAGER_START},
|
||||
{"IsOnroad", PERSISTENT},
|
||||
{"IsRHD", PERSISTENT},
|
||||
{"IsTakingSnapshot", CLEAR_ON_MANAGER_START},
|
||||
{"IsUpdateAvailable", CLEAR_ON_MANAGER_START},
|
||||
|
||||
@@ -171,6 +171,9 @@ def thermald_thread():
|
||||
|
||||
thermal_config = HARDWARE.get_thermal_config()
|
||||
|
||||
if params.get_bool("IsOnroad"):
|
||||
cloudlog.event("onroad flag not cleared")
|
||||
|
||||
# CPR3 logging
|
||||
if EON:
|
||||
base_path = "/sys/kernel/debug/cpr3-regulator/"
|
||||
@@ -356,6 +359,7 @@ def thermald_thread():
|
||||
# Handle offroad/onroad transition
|
||||
should_start = all(startup_conditions.values())
|
||||
if should_start != should_start_prev or (count == 0):
|
||||
params.put_bool("IsOnroad", should_start)
|
||||
params.put_bool("IsOffroad", not should_start)
|
||||
HARDWARE.set_power_save(not should_start)
|
||||
if TICI and not params.get_bool("EnableLteOnroad"):
|
||||
|
||||
Reference in New Issue
Block a user