From 4a88d3477d02cbe7e28469212492e807b39e20db Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Tue, 13 Sep 2016 18:31:37 +0200 Subject: [PATCH] Fixes #3766 --- radio/src/lua/interface.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/radio/src/lua/interface.cpp b/radio/src/lua/interface.cpp index 253bffe76..e75125d25 100644 --- a/radio/src/lua/interface.cpp +++ b/radio/src/lua/interface.cpp @@ -584,6 +584,11 @@ void luaDoOneRunStandalone(event_t evt) } #endif } + else { + TRACE("Script run method missing"); + standaloneScript.state = SCRIPT_SYNTAX_ERROR; + luaState = INTERPRETER_RELOAD_PERMANENT_SCRIPTS; + } } bool luaDoOneRunPermanentScript(uint8_t evt, int i, uint32_t scriptType)