From 2cf7ee8ced65a9b34517ad9ba1f2caacd61b828e Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 17 May 2021 16:12:31 -0700 Subject: [PATCH] missing nvme is only offroad alert --- selfdrive/thermald/thermald.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index 1d807c9ab2..a2d63f291c 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -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())