      onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.danger
      set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", (not onroad_conditions["device_temp_good"]))
  
      if TICI:
        set_offroad_alert_if_changed("Offroad_StorageMissing", (not Path("/data/media").is_mount()))
  
      # Handle offroad/onroad transition
      should_start = all(onroad_conditions.values())
      if started_ts is None:
        should_start = should_start and all(startup_conditions.values())
 
</s> remove #define SDCARD "/dev/mmcblk0"
 </s> add  </s> remove   std::system("sudo umount " SDCARD);
  std::system("yes | sudo mkfs.ext4 " SDCARD);
 </s> add  </s> remove     "text": "Storage drive not mounted.",
 </s> add     "text": "NVMe drive not mounted.",
      missing = (not Path("/data/media").is_mount()) and (not os.path.isfile("/persist/comma/living-in-the-moment"))
      set_offroad_alert_if_changed("Offroad_StorageMissing", missing)
      onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.danger
      set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", (not onroad_conditions["device_temp_good"]))
  
      if TICI:
      missing = (not Path("/data/media").is_mount()) and (not os.path.isfile("/persist/comma/living-in-the-moment"))
      set_offroad_alert_if_changed("Offroad_StorageMissing", missing)
  
      # Handle offroad/onroad transition
      should_start = all(onroad_conditions.values())
      if started_ts is None:
        should_start = should_start and all(startup_conditions.values())
keep keep keep keep replace keep keep keep keep keep
 for those who want to live in the moment 
selfdrive/thermald/thermald.py