mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:28:02 +02:00
Merge branch 'master' of https://github.com/worklist/hifi
This commit is contained in:
commit
17fff564d0
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "PacketHeaders.h"
|
#include "PacketHeaders.h"
|
||||||
|
#include "Log.h"
|
||||||
|
|
||||||
PACKET_VERSION versionForPacketType(PACKET_TYPE type) {
|
PACKET_VERSION versionForPacketType(PACKET_TYPE type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -24,7 +25,7 @@ bool packetVersionMatch(unsigned char* packetHeader) {
|
||||||
if (packetHeader[1] == versionForPacketType(packetHeader[0])) {
|
if (packetHeader[1] == versionForPacketType(packetHeader[0])) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
printf("There is a packet version mismatch for packet with header %c\n", packetHeader[0]);
|
printLog("There is a packet version mismatch for packet with header %c\n", packetHeader[0]);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue