summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessaE <vanessaezekowitz@gmail.com>2012-09-01 14:30:25 -0700
committerVanessaE <vanessaezekowitz@gmail.com>2012-09-01 14:30:25 -0700
commit6fec23a5f2c40c7255355f07cbd1f6105dba5710 (patch)
tree45176784c424f841ca975e676020a5a2c6426d91
parent65f614f9e124a09ed5490fc6bc441388edcd3202 (diff)
parentf641a0cc9c09a9402d439d752788d16271e9424e (diff)
downloadmesecons-6fec23a5f2c40c7255355f07cbd1f6105dba5710.tar
mesecons-6fec23a5f2c40c7255355f07cbd1f6105dba5710.tar.gz
mesecons-6fec23a5f2c40c7255355f07cbd1f6105dba5710.tar.bz2
mesecons-6fec23a5f2c40c7255355f07cbd1f6105dba5710.tar.xz
mesecons-6fec23a5f2c40c7255355f07cbd1f6105dba5710.zip
Merge pull request #44 from VanessaE/master
prevent crash in µC sbi
-rw-r--r--mesecons_microcontroller/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua
index a4c2741..4aa65ad 100644
--- a/mesecons_microcontroller/init.lua
+++ b/mesecons_microcontroller/init.lua
@@ -505,6 +505,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)