improved changes from PR #1234

This commit is contained in:
lumapu 2023-11-19 00:25:27 +01:00
parent 67e8f69ce3
commit b57e463b92
3 changed files with 7 additions and 9 deletions

View file

@ -309,10 +309,8 @@ class HmRadio : public Radio {
}
inline bool checkIvSerial(uint8_t buf[], Inverter<> *iv) {
uint8_t tmp[4];
CP_U32_BigEndian(tmp, iv->radioId.u64 >> 8);
for(uint8_t i = 0; i < 4; i++) {
if(tmp[i] != buf[i])
if(buf[3-i] != iv->radioId.b[i])
return false;
}
return true;