diff options
Diffstat (limited to 'mesecons_microcontroller')
-rw-r--r-- | mesecons_microcontroller/init.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua index a4c2741..3a2ce2b 100644 --- a/mesecons_microcontroller/init.lua +++ b/mesecons_microcontroller/init.lua @@ -426,7 +426,11 @@ function yc_command_after_execute(params) if yc_parsecode(params.code, params.pos) == nil then meta:set_string("infotext", "Code in after() not valid!") else - meta:set_string("infotext", "Working Microcontroller") + if code ~= nil then + meta:set_string("infotext", "Working Microcontroller\n"..code) + else + meta:set_string("infotext", "Working Microcontroller") + end end end end @@ -505,6 +509,7 @@ function yc_command_parsecondition(cond, L, eeprom) if cond:sub(i+1, i+1) == nil then break end if s == "=" then if a==nil then return nil end + if b==nil then return nil end if a == b then buf = "1" end if a ~= b then buf = "0" end cond = string.gsub(cond, b..s..a, buf) |