mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-04 13:02:09 +08:00
missing nvme is only offroad alert
old-commit-hash: 2cf7ee8ced65a9b34517ad9ba1f2caacd61b828e
This commit is contained in:
@@ -351,9 +351,7 @@ def thermald_thread():
|
||||
set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", (not startup_conditions["device_temp_good"]))
|
||||
|
||||
if TICI:
|
||||
nvme_path = Path("/data/media")
|
||||
startup_conditions["nvme_mounted"] = nvme_path.is_mount()
|
||||
set_offroad_alert_if_changed("Offroad_NvmeMissing", (not startup_conditions["nvme_mounted"]))
|
||||
set_offroad_alert_if_changed("Offroad_NvmeMissing", (not Path("/data/media").is_mount()))
|
||||
|
||||
# Handle offroad/onroad transition
|
||||
should_start = all(startup_conditions.values())
|
||||
|
||||
Reference in New Issue
Block a user