mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-12 15:23:42 +08:00
ui: record why model names read the params slots and not modelManagerSP
This commit is contained in:
@@ -23,7 +23,11 @@ def bundles_for_source(source: str):
|
||||
|
||||
|
||||
def model_info() -> tuple[str, str, str]:
|
||||
"""returns (active source, active model name, other model name)"""
|
||||
"""returns (active source, active model name, other model name)
|
||||
|
||||
Names come from the params slots, never modelManagerSP.activeBundle — the
|
||||
manager republishes a tick after a chestnut change, so the stale bundle
|
||||
would flash the wrong model."""
|
||||
source = active_source()
|
||||
other = "qcom" if source == "usbgpu" else "usbgpu"
|
||||
active_bundle = get_selected_bundle(ui_state.params, source)
|
||||
|
||||
Reference in New Issue
Block a user