summaryrefslogtreecommitdiff
path: root/mesecons_microcontroller
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_microcontroller')
-rw-r--r--mesecons_microcontroller/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua
index 24d98a1..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\n"..code)
+ if code ~= nil then
+ meta:set_string("infotext", "Working Microcontroller\n"..code)
+ else
+ meta:set_string("infotext", "Working Microcontroller")
+ end
end
end
end