mirror of https://github.com/arendst/Tasmota.git
Ignore non-binary char in bit stream
This commit is contained in:
parent
b3e8d3c143
commit
97c1ae568c
|
@ -582,7 +582,7 @@ bool IrSendCommand(void)
|
||||||
if (*p == '0') {
|
if (*p == '0') {
|
||||||
raw_array[i++] = bit_mrk;
|
raw_array[i++] = bit_mrk;
|
||||||
raw_array[i++] = zer_spc;
|
raw_array[i++] = zer_spc;
|
||||||
} else {
|
} else if (*p == '1') {
|
||||||
raw_array[i++] = bit_mrk;
|
raw_array[i++] = bit_mrk;
|
||||||
raw_array[i++] = one_spc;
|
raw_array[i++] = one_spc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue