Skip to content

Commit 0237bfb

Browse files
authored
Merge pull request #269 from brilliantlabsAR/raj/reset
Button click ensures Frame stays powered for pairing
2 parents 1ab3429 + b19bbd3 commit 0237bfb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

source/application/luaport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void run_lua(bool factory_reset, bool is_paired)
108108
}
109109

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

113113
if (status != LUA_OK)
114114
{

source/application/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ static void hardware_setup(bool *factory_reset)
290290
{
291291
LOG("Factory reset");
292292
*factory_reset = true;
293+
stay_awake = true;
293294
}
294295
}
295296

0 commit comments

Comments
 (0)