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:
parent
ad594a9d65
commit
a8585a509f
3 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue