fixed pocket main thread crash on nil current page, added info page to alarm test app

This commit is contained in:
Mikayla Fischler
2025-09-13 15:50:25 -04:00
parent 99c9fec195
commit 20f949a9dd
4 changed files with 22 additions and 7 deletions

View File

@@ -58,8 +58,10 @@ function threads.thread__main(smem)
pocket_comms.link_update()
-- update any tasks for the active page
local page_tasks = nav.get_current_page().tasks
for i = 1, #page_tasks do page_tasks[i]() end
if nav.get_current_page() then
local page_tasks = nav.get_current_page().tasks
for i = 1, #page_tasks do page_tasks[i]() end
end
loop_clock.start()
elseif sv_wd.is_timer(param1) then