Skip to content

Commit d5ff540

Browse files
author
philmoz
committed
Fix for wizard scripts not running. Also fixes running scripts from SD manager.
1 parent 8a5d6a2 commit d5ff540

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

radio/src/gui/colorlcd/model/model_select.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ void ModelLabelsWindow::newModel()
660660
int len = strlen(path);
661661
snprintf(path + len, LEN_BUFFER - len, "/%s%s", name.c_str(), SCRIPT_EXT);
662662
if (f_stat(path, 0) == FR_OK) {
663-
luaExec(path);
663+
luaExecStandalone(path);
664664
}
665665
#endif
666666
}

radio/src/gui/colorlcd/radio/radio_sdmanager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ void RadioSdManagerPage::fileAction(const char* path, const char* name,
486486
#if defined(LUA)
487487
else if (isExtensionMatching(ext, SCRIPTS_EXT)) {
488488
menu->addLine(STR_EXECUTE_FILE, [=]() {
489-
luaExec(fullpath);
489+
luaExecStandalone(fullpath);
490490
});
491491
}
492492
#endif

0 commit comments

Comments
 (0)