diff options
author | VanessaE <vanessaezekowitz@gmail.com> | 2012-09-01 14:44:40 -0700 |
---|---|---|
committer | VanessaE <vanessaezekowitz@gmail.com> | 2012-09-01 14:44:40 -0700 |
commit | 544dfb9e0b74d4dbab7ecf29afd76901594f061a (patch) | |
tree | 3e3bbae2cfeeb2f7ad918ad23256f47b2ffc851a | |
parent | 00d797ae0f1f5ca62d6c09b5c22d087ddbcae00a (diff) | |
parent | 34737f62e903d6e37325fe215751f7b6e0fdbd19 (diff) | |
download | mesecons-544dfb9e0b74d4dbab7ecf29afd76901594f061a.tar mesecons-544dfb9e0b74d4dbab7ecf29afd76901594f061a.tar.gz mesecons-544dfb9e0b74d4dbab7ecf29afd76901594f061a.tar.bz2 mesecons-544dfb9e0b74d4dbab7ecf29afd76901594f061a.tar.xz mesecons-544dfb9e0b74d4dbab7ecf29afd76901594f061a.zip |
Merge pull request #46 from VanessaE/master
Fix previous commit
-rw-r--r-- | mesecons_microcontroller/init.lua | 6 |
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 |