This commit is contained in:
Timothy Schenk 2022-12-31 17:46:33 +01:00
parent 8efa1454e4
commit 84c13cc1ba

View file

@ -34,8 +34,7 @@ public class PacketForwardingService
private PacketId GetPacketId(Span<Byte> bytes) private PacketId GetPacketId(Span<Byte> bytes)
{ {
PacketId id = 0; var id = (PacketId)BitConverter.ToUInt16(new[] { bytes[0], bytes[1] });
id = (PacketId)BitConverter.ToUInt16(new[] { bytes[0], bytes[1] });
return id; return id;
} }
} }