File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
selfdrive/ui/mici/layouts Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 88from openpilot .system .ui .lib .application import gui_app , FontWeight , DEFAULT_TEXT_COLOR , MousePos
99from openpilot .selfdrive .ui .ui_state import ui_state
1010from openpilot .system .ui .text import wrap_text
11- from openpilot .system .version import training_version
11+ from openpilot .system .version import training_version , RELEASE_BRANCHES
1212
1313HEAD_BUTTON_FONT_SIZE = 40
1414HOME_PADDING = 8
1515
16- RELEASE_BRANCH = "release3"
17-
1816NetworkType = log .DeviceState .NetworkType
1917
2018NETWORK_TYPES = {
@@ -187,9 +185,9 @@ def _render(self, _):
187185
188186 if self ._version_text is not None :
189187 # release branch
190- if self ._version_text [0 ] == RELEASE_BRANCH :
188+ if self ._version_text [1 ] in RELEASE_BRANCHES :
191189 version_pos = rl .Vector2 (text_pos .x , text_pos .y + self ._openpilot_label .font_size + 16 )
192- self ._large_version_label .set_text (self . _version_text [ 0 ] )
190+ self ._large_version_label .set_text ("release" )
193191 self ._large_version_label .set_position (version_pos .x , version_pos .y )
194192 self ._large_version_label .render ()
195193
You can’t perform that action at this time.
0 commit comments