Fix incorrect flag detection
This commit is contained in:
parent
195bef0e6f
commit
f9c6fa23f5
|
@ -111,11 +111,7 @@ void threadLEDBroadcast(SOCKET sHost, const IPCMemoryInfo* memory)
|
|||
bool same = true;
|
||||
if(!previous_status.empty())
|
||||
{
|
||||
if(memcmp(previous_status.data(), current_status.data(), previous_status.size()) != 0)
|
||||
{
|
||||
same = false;
|
||||
break;
|
||||
}
|
||||
same = (memcmp(previous_status.data(), current_status.data(), previous_status.size()) == 0);
|
||||
}
|
||||
else
|
||||
same = false;
|
||||
|
|
Loading…
Reference in New Issue