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)
354354 incValue (- 1 )
355355 end
356356 end
357- local nextPage = nil
357+ local nextPage = currentPage
358358 while Page == nil do
359359 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
365361 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
366369 end
367370 end
368371 if not Page .values and currentState == pageStatus .display then
You can’t perform that action at this time.
0 commit comments