Merge pull request #30 from khonkhortisan/patch-1

Display yC Code in Infotexts
This commit is contained in:
sfan5 2012-08-21 11:54:07 -07:00
commit 86a588e3ed

@ -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