mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 03:03:41 +08:00
Use standard startup reminder on official StarPilot channels
This commit is contained in:
Executable → Regular
+4
-1
@@ -261,7 +261,10 @@ class SelfdriveD:
|
||||
# Observational only. Do not cache this qualification for authority decisions.
|
||||
|
||||
# Determine startup event
|
||||
self.startup_event = EventName.startup if build_metadata.openpilot.comma_remote and build_metadata.tested_channel else EventName.startupMaster
|
||||
official_starpilot = (build_metadata.openpilot.git_normalized_origin.lower() == 'github.com/starpilothq/starpilot' and
|
||||
build_metadata.channel in ('stable', 'testing'))
|
||||
standard_startup = official_starpilot or (build_metadata.openpilot.comma_remote and build_metadata.tested_channel)
|
||||
self.startup_event = EventName.startup if standard_startup else EventName.startupMaster
|
||||
if HARDWARE.get_device_type() == 'mici':
|
||||
self.startup_event = None
|
||||
if not car_recognized:
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "6005222f66e56cb4a18b863866ccec23e20633d8172dd6cb2b48ba8dedbf071c", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "9393f61a709f51cbb1e21daba64860b3ac99a60d3b852b6905385aaea6134e3a", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user