File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -354,15 +354,18 @@ function run_ui(event)
354
354
incValue (- 1 )
355
355
end
356
356
end
357
- local nextPage = nil
357
+ local nextPage = currentPage
358
358
while Page == nil do
359
359
Page = assert (loadScript (radio .templateHome .. PageFiles [currentPage ]))()
360
- if Page .requiredVersion and apiVersion and Page .requiredVersion > apiVersion and currentPage ~= nextPage then
361
- if nextPage == nil then
362
- nextPage = currentPage
363
- end
364
-
360
+ if Page .requiredVersion and apiVersion > 0 and Page .requiredVersion > apiVersion then
365
361
incPage (1 )
362
+
363
+ if currentPage == nextPage then
364
+ lcd .clear ()
365
+ lcd .drawText (NoTelem [1 ], NoTelem [2 ], " No Pages! API: " .. apiVersion , NoTelem [4 ])
366
+
367
+ return 1
368
+ end
366
369
end
367
370
end
368
371
if not Page .values and currentState == pageStatus .display then
You can’t perform that action at this time.
0 commit comments