Skip to content

Commit d9bc9fc

Browse files
committed
allow apiVersion detection in init state for TELEMETRY script
1 parent e555ab4 commit d9bc9fc

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/SCRIPTS/BF/ui.lua

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,16 +297,9 @@ function run_ui(event)
297297
-- if lastRunTS old than 500ms
298298
if lastRunTS + 50 < now then
299299
invalidatePages()
300-
if isTelemetryScript then
301-
uiState = uiStatus.pages
302-
else
303-
uiState = uiStatus.init
304-
end
300+
uiState = uiStatus.init
305301
end
306302
lastRunTS = now
307-
if isTelemetryScript then
308-
uiState = uiStatus.pages
309-
end
310303
if uiState == uiStatus.init then
311304
local yMinLim = radio.yMinLimit
312305
lcd.clear()
@@ -323,7 +316,11 @@ function run_ui(event)
323316
else
324317
background = nil
325318
invalidatePages()
326-
uiState = uiStatus.mainMenu
319+
if isTelemetryScript then
320+
uiState = uiStatus.pages
321+
else
322+
uiState = uiStatus.mainMenu
323+
end
327324
end
328325
elseif uiState == uiStatus.mainMenu then
329326
getPageCount()

0 commit comments

Comments
 (0)