We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ab3429 + b19bbd3 commit 0237bfbCopy full SHA for 0237bfb
source/application/luaport.c
@@ -108,7 +108,7 @@ void run_lua(bool factory_reset, bool is_paired)
108
}
109
110
// Run main.lua
111
- int status = luaL_dostring(L, "require('main')");
+ int status = luaL_dostring(L, "frame.stay_awake(false); require('main')");
112
113
if (status != LUA_OK)
114
{
source/application/main.c
@@ -290,6 +290,7 @@ static void hardware_setup(bool *factory_reset)
290
291
LOG("Factory reset");
292
*factory_reset = true;
293
+ stay_awake = true;
294
295
296
0 commit comments