Merge pull request #5611 from kinsamanka/irsend

Ignore non-binary char in bit stream
This commit is contained in:
Theo Arends 2019-04-09 14:54:42 +02:00 committed by GitHub
commit 19ab3183f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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