Skip to content

Commit

Permalink
Update status & add checksum verification.
Browse files Browse the repository at this point in the history
Capture verified on real device per:
  #1802 (comment)

For #1802
  • Loading branch information
crankyoldgit committed May 12, 2022
1 parent c5a948b commit df701b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ir_Daikin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3737,7 +3737,7 @@ stdAc::state_t IRDaikin64::toCommon(const stdAc::state_t *prev) const {

#if SEND_DAIKIN200
/// Send a Daikin200 (200-bit) A/C formatted message.
/// Status: Alpha / Untested on a real device.
/// Status: BETA / Untested on a real device.
/// @param[in] data The message to be sent.
/// @param[in] nbytes The number of bytes of message to be sent.
/// @param[in] repeat The number of times the command is to be repeated.
Expand Down Expand Up @@ -3767,7 +3767,7 @@ void IRsend::sendDaikin200(const unsigned char data[], const uint16_t nbytes,

#if DECODE_DAIKIN200
/// Decode the supplied Daikin 200-bit message. (DAIKIN200)
/// Status: BETA / Should be working.
/// Status: STABLE / Known to be working.
/// @param[in,out] results Ptr to the data to decode & where to store the decode
/// result.
/// @param[in] offset The starting index to use when attempting to decode the
Expand Down Expand Up @@ -3807,7 +3807,7 @@ bool IRrecv::decodeDaikin200(decode_results *results, uint16_t offset,
if (strict) {
if (pos * 8 != kDaikin200Bits) return false;
// Validate the checksum.
// if (!IRDaikin200::validChecksum(results->state)) return false;
if (!IRDaikin176::validChecksum(results->state, pos)) return false;
}

// Success
Expand Down

0 comments on commit df701b1

Please sign in to comment.