Closed abdulmannan closed 5 years ago
Gree Generic/Yaa checksum is not calculated correctly. Here is the corrected checksum code.
GreeTemplate[7] = ((( (GreeTemplate[0] & 0x0F) + (GreeTemplate[1] & 0x0F) + (GreeTemplate[2] & 0x0F) + (GreeTemplate[3] & 0x0F) + ((GreeTemplate[5] & 0xF0) >> 4) + ((GreeTemplate[6] & 0xF0) >> 4) + ((GreeTemplate[7] & 0xF0) >> 4) + 0x0A) & 0x0F) << 4) | (GreeTemplate[7] & 0x0F);
Got help from: https://github.com/markszabo/IRremoteESP8266/blob/master/src/ir_Gree.cpp
Corrected code merged.
Gree Generic/Yaa checksum is not calculated correctly. Here is the corrected checksum code.
GreeTemplate[7] = ((( (GreeTemplate[0] & 0x0F) + (GreeTemplate[1] & 0x0F) + (GreeTemplate[2] & 0x0F) + (GreeTemplate[3] & 0x0F) + ((GreeTemplate[5] & 0xF0) >> 4) + ((GreeTemplate[6] & 0xF0) >> 4) + ((GreeTemplate[7] & 0xF0) >> 4) + 0x0A) & 0x0F) << 4) | (GreeTemplate[7] & 0x0F);