Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienwarin committed Sep 23, 2015
1 parent 412d50d commit 6d6d3b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion IRremoteESP8266.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1210,4 +1210,3 @@ long IRrecv::decodeHash(decode_results *results) {
}

// ---------------------------------------------------------------
}
2 changes: 1 addition & 1 deletion examples/IRrecvDump/IRrecvDump.ino
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void dump(decode_results *results) {
}
else if (results->decode_type == PANASONIC) {
Serial.print("Decoded PANASONIC - Address: ");
Serial.print(results->address, HEX);
Serial.print(results->panasonicAddress, HEX);
Serial.print(" Value: ");
}
else if (results->decode_type == LG) {
Expand Down
11 changes: 2 additions & 9 deletions examples/IRrecvDumpV2/IRrecvDumpV2.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void ircode (decode_results *results)
{
// Panasonic has an Address
if (results->decode_type == PANASONIC) {
Serial.print(results->address, HEX);
Serial.print(results->panasonicAddress, HEX);
Serial.print(":");
}

Expand Down Expand Up @@ -54,7 +54,6 @@ void encoding (decode_results *results)
case WHYNTER: Serial.print("WHYNTER"); break ;
case AIWA_RC_T501: Serial.print("AIWA_RC_T501"); break ;
case PANASONIC: Serial.print("PANASONIC"); break ;
case DENON: Serial.print("Denon"); break ;
}
}

Expand All @@ -63,12 +62,6 @@ void encoding (decode_results *results)
//
void dumpInfo (decode_results *results)
{
// Check if the buffer overflowed
if (results->overflow) {
Serial.println("IR code too long. Edit IRremoteInt.h and increase RAWLEN");
return;
}

// Show Encoding standard
Serial.print("Encoding : ");
encoding(results);
Expand Down Expand Up @@ -148,7 +141,7 @@ void dumpCode (decode_results *results)
// Some protocols have an address
if (results->decode_type == PANASONIC) {
Serial.print("unsigned int addr = 0x");
Serial.print(results->address, HEX);
Serial.print(results->panasonicAddress, HEX);
Serial.println(";");
}

Expand Down

0 comments on commit 6d6d3b8

Please sign in to comment.