From 97c1ae568ca6b66446e4c3537a46e40b3ee55c3b Mon Sep 17 00:00:00 2001 From: GP Orcullo Date: Tue, 9 Apr 2019 19:11:47 +0800 Subject: [PATCH] Ignore non-binary char in bit stream --- sonoff/xdrv_05_irremote.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_05_irremote.ino b/sonoff/xdrv_05_irremote.ino index a2c47a78e..eb8699d7c 100644 --- a/sonoff/xdrv_05_irremote.ino +++ b/sonoff/xdrv_05_irremote.ino @@ -582,7 +582,7 @@ bool IrSendCommand(void) if (*p == '0') { raw_array[i++] = bit_mrk; raw_array[i++] = zer_spc; - } else { + } else if (*p == '1') { raw_array[i++] = bit_mrk; raw_array[i++] = one_spc; }