Skip to content

Commit

Permalink
Add MITSUBISHI2 support to IRMQTTServer.
Browse files Browse the repository at this point in the history
  • Loading branch information
crankyoldgit committed Apr 2, 2018
1 parent ac97a0a commit 46cdebf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/IRMQTTServer/IRMQTTServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ void handleRoot() {
"<option value='35'>MagiQuest</option>"
"<option value='34'>Midea</option>"
"<option value='12'>Mitsubishi</option>"
"<option value='39'>Mitsubishi2</option>"
"<option selected='selected' value='3'>NEC</option>" // Default
"<option value='29'>Nikai</option>"
"<option value='5'>Panasonic</option>"
Expand Down Expand Up @@ -1107,6 +1108,14 @@ void sendIRCode(int const ir_type, uint64_t const code, char const * code_str,
bits = CARRIER_AC_BITS;
irsend.sendCarrierAC(code, bits, repeat);
break;
#endif
#if SEND_MITSUBISHI2
case MITSUBISHI2: // 39
if (bits == 0)
bits = MITSUBISHI_BITS;
repeat = std::max(repeat, (uint16_t) MITSUBISHI_MIN_REPEAT);
irsend.sendMitsubishi2(code, bits, repeat);
break;
#endif
}

Expand Down

0 comments on commit 46cdebf

Please sign in to comment.