diff --git a/radio/src/lua.cpp b/radio/src/lua.cpp index c8e1c6830..9da79f2c9 100644 --- a/radio/src/lua.cpp +++ b/radio/src/lua.cpp @@ -165,7 +165,8 @@ static LuaField foundField = {0, foundName, foundDesc}; /** Return filed data for a given field name - Note: function is non-reentrant + Note: function is non-reentrant, + it uses global variable foundField for return value */ const LuaField * luaFindFieldByName(const char * name) { @@ -188,15 +189,14 @@ const LuaField * luaFindFieldByName(const char * name) } } } - // search in lua script outputs - // TODO return 0; // not found } /** Return filed data for a given field id - Note: function is non-reentrant + Note: function is non-reentrant, + it uses global variable foundField for return value */ const LuaField * luaFindFieldById(int id) { @@ -215,8 +215,6 @@ const LuaField * luaFindFieldById(int id) return &foundField; } } - // search in lua script outputs - // TODO return 0; // not found } diff --git a/radio/util/luaexport.py b/radio/util/luaexport.py index 75789dab8..df3c4e0cf 100644 --- a/radio/util/luaexport.py +++ b/radio/util/luaexport.py @@ -178,4 +178,4 @@ if warning: elif error: os.remove(outputFile) sys.exit(2) -sys.exit(0) \ No newline at end of file +sys.exit(0)