Skip to content

Commit

Permalink
Merge pull request #269 from brilliantlabsAR/raj/reset
Browse files Browse the repository at this point in the history
Button click ensures Frame stays powered for pairing
  • Loading branch information
siliconwitch authored Sep 23, 2024
2 parents 1ab3429 + b19bbd3 commit 0237bfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/application/luaport.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void run_lua(bool factory_reset, bool is_paired)
}

// Run main.lua
int status = luaL_dostring(L, "require('main')");
int status = luaL_dostring(L, "frame.stay_awake(false); require('main')");

if (status != LUA_OK)
{
Expand Down
1 change: 1 addition & 0 deletions source/application/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ static void hardware_setup(bool *factory_reset)
{
LOG("Factory reset");
*factory_reset = true;
stay_awake = true;
}
}

Expand Down

0 comments on commit 0237bfb

Please sign in to comment.