diff --git a/system/hardware/hardwared.py b/system/hardware/hardwared.py index aad30f77b2b32c..5d2f397d7a4f69 100755 --- a/system/hardware/hardwared.py +++ b/system/hardware/hardwared.py @@ -17,14 +17,13 @@ from openpilot.common.params import Params from openpilot.common.realtime import DT_HW from openpilot.selfdrive.selfdrived.alertmanager import set_offroad_alert -from openpilot.system.hardware import HARDWARE, TICI, AGNOS, PC +from openpilot.system.hardware import HARDWARE, TICI, AGNOS from openpilot.system.loggerd.config import get_available_percent from openpilot.system.statsd import statlog from openpilot.common.swaglog import cloudlog from openpilot.system.hardware.power_monitoring import PowerMonitoring from openpilot.system.hardware.fan_controller import FanController from openpilot.system.version import terms_version, training_version -from openpilot.system.athena.registration import UNREGISTERED_DONGLE_ID ThermalStatus = log.DeviceState.ThermalStatus NetworkType = log.DeviceState.NetworkType @@ -324,10 +323,9 @@ def hardware_thread(end_event, hw_queue) -> None: set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", show_alert, extra_text=extra_text) # *** registration check *** - if not PC: - # we enforce this for our software, but you are welcome - # to make a different decision in your software - startup_conditions["registered_device"] = PC or (params.get("DongleId") != UNREGISTERED_DONGLE_ID) + # No dongle-id gate: pre-AP Teslas run on non-comma hardware that doesn't + # register with comma's backend, so onroad must not depend on registration. + # comma's stock code enforces this here; forks are invited to differ. # Handle offroad/onroad transition should_start = all(onroad_conditions.values())