summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2012-08-21 11:54:07 -0700
committersfan5 <sfan5@live.de>2012-08-21 11:54:07 -0700
commit86a588e3ed6fa6e23ae4b5bfcd5905b7c23b3e63 (patch)
tree025e96dc330e5872e65255cc0b57e1138581b932
parent9ebe65fe7b7258e5f9c7c80366b96566fa6e3ac2 (diff)
parent68b99fed764d6886b4f44254aa26c60300e8e6b0 (diff)
downloadmesecons-86a588e3ed6fa6e23ae4b5bfcd5905b7c23b3e63.tar
mesecons-86a588e3ed6fa6e23ae4b5bfcd5905b7c23b3e63.tar.gz
mesecons-86a588e3ed6fa6e23ae4b5bfcd5905b7c23b3e63.tar.bz2
mesecons-86a588e3ed6fa6e23ae4b5bfcd5905b7c23b3e63.tar.xz
mesecons-86a588e3ed6fa6e23ae4b5bfcd5905b7c23b3e63.zip
Merge pull request #30 from khonkhortisan/patch-1
Display yC Code in Infotexts
-rw-r--r--mesecons_microcontroller/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua
index 24434b8..f531853 100644
--- a/mesecons_microcontroller/init.lua
+++ b/mesecons_microcontroller/init.lua
@@ -142,9 +142,9 @@ function update_yc(pos)
code = string.gsub(code, " ", "") --Remove all spaces
code = string.gsub(code, " ", "") --Remove all tabs
if yc_parsecode(code, pos) == nil then
- meta:set_string("infotext", "Code not valid!")
+ meta:set_string("infotext", "Code not valid!\n"..code)
else
- meta:set_string("infotext", "Working Microcontroller")
+ meta:set_string("infotext", "Working Microcontroller\n"..code)
end
end