mirror of
https://github.com/crankyoldgit/IRremoteESP8266.git
synced 2026-01-12 00:05:10 +08:00
Update IRremoteESP8266.cpp
With this part of code commented I couldn't decode Panasonic codes. After uncommenting it works fine. (It is uncommented in 2.1.0 version of Arduino-IRremote library)
This commit is contained in:
@@ -1000,10 +1000,10 @@ long IRrecv::decodeRC6(decode_results *results) {
|
||||
long IRrecv::decodePanasonic(decode_results *results) {
|
||||
unsigned long long data = 0;
|
||||
int offset = 1; // Dont skip first space
|
||||
/*if (!MATCH_MARK(results->rawbuf[offset], PANASONIC_HDR_MARK)) {
|
||||
if (!MATCH_MARK(results->rawbuf[offset], PANASONIC_HDR_MARK)) {
|
||||
return ERR;
|
||||
}
|
||||
offset++;*/
|
||||
offset++;
|
||||
if (!MATCH_MARK(results->rawbuf[offset], PANASONIC_HDR_SPACE)) {
|
||||
return ERR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user