mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 11:32:21 +08:00
UI
This commit is contained in:
+2
-4
@@ -1,13 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
from openpilot.system.hardware import HARDWARE
|
||||
from openpilot.system.ui.lib.application import gui_app
|
||||
import openpilot.system.ui.tici_reset as tici_reset
|
||||
import openpilot.system.ui.mici_reset as mici_reset
|
||||
|
||||
|
||||
def main():
|
||||
# Use actual hardware type, not UI scale/env flags, to choose reset UI.
|
||||
# This prevents mici devices from launching tici reset layouts.
|
||||
if HARDWARE.get_device_type() in ("tici", "tizi"):
|
||||
if gui_app.big_ui():
|
||||
tici_reset.main()
|
||||
else:
|
||||
mici_reset.main()
|
||||
|
||||
Reference in New Issue
Block a user