Fix Tuya v2 module compilation (#20272)

This commit is contained in:
Marcus Better 2023-12-20 04:00:52 -05:00 committed by GitHub
parent 9e2ae391fc
commit 04a8414217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2129,7 +2129,7 @@ void TuyaProcessCommand(unsigned char *buffer){
}
*/
for (uint8_t cmdsID = 0; cmdsID < sizeof(TuyaExcludeCMDsFromMQTT); cmdsID++) {
if (pgm_read_byte(TuyaExcludeCMDsFromMQTT +cmdsID) == Tuya.buffer[3]) {
if (pgm_read_byte(TuyaExcludeCMDsFromMQTT +cmdsID) == cmd) {
isCmdToSuppress = true;
break;
}