Commit 03462de3 authored by vladislav's avatar vladislav
Browse files

bugs fixes

parent 7a7face2
......@@ -61,7 +61,7 @@ uint8_t gateway_protocol_packet_decode (
memcpy(payload, &packet[p_len], *payload_length);
p_len += *payload_length;
return (memcmp(appkey, app_key, GATEWAY_PROTOCOL_APP_KEY_SIZE) &&
return (!memcmp(appkey, app_key, GATEWAY_PROTOCOL_APP_KEY_SIZE) &&
dev == dev_id &&
p_len == packet_length);
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment