Skip to content

Commit

Permalink
Add documentation comments for where to add new protocols using state…
Browse files Browse the repository at this point in the history
… and cleanup
  • Loading branch information
NiKiZe committed May 24, 2020
1 parent dcb7adf commit 2d61e00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/IRremoteESP8266.h
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@
DECODE_AMCOR || DECODE_DAIKIN152 || DECODE_MITSUBISHI136 || \
DECODE_MITSUBISHI112 || DECODE_HITACHI_AC424 || DECODE_HITACHI_AC3 || \
DECODE_HITACHI_AC344)
// Add any DECODE to the above if it uses result->state (see kStateSizeMax)
// you might also want to add the protocol to hasACState function
#define DECODE_AC true // We need some common infrastructure for decoding A/Cs.
#else
#define DECODE_AC false // We don't need that infrastructure.
Expand Down
1 change: 1 addition & 0 deletions src/IRutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ String typeToString(const decode_type_t protocol, const bool isRepeat) {
// Does the given protocol use a complex state as part of the decode?
bool hasACState(const decode_type_t protocol) {
switch (protocol) {
// This is keept sorted by name
case AMCOR:
case ARGO:
case DAIKIN:
Expand Down

0 comments on commit 2d61e00

Please sign in to comment.