1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

Receiver not fully removed when BIND cancelled

This commit is contained in:
Bertrand Songis 2019-07-16 12:00:19 +02:00
parent ad594a9d65
commit a8585a509f
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
3 changed files with 3 additions and 1 deletions

View file

@ -260,7 +260,7 @@ inline void memclear(void * p, size_t size)
inline bool is_memclear(void * p, size_t size)
{
uint8_t * buf = (uint8_t *)p;
return buf[0] == 0 && !memcmp(buf, buf + 1, size - 1);
return buf[0] == 0 && memcmp(buf, buf + 1, size - 1) == 0;
}
void memswap(void * a, void * b, uint8_t size);