mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-08 03:57:16 +02:00
improved changes from PR #1234
This commit is contained in:
parent
67e8f69ce3
commit
b57e463b92
3 changed files with 7 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue