diff --git a/shared/AVLiveWire/Sources/AVLiveWire/WirePayloads.swift b/shared/AVLiveWire/Sources/AVLiveWire/WirePayloads.swift index 9ba575f..5f9396e 100644 --- a/shared/AVLiveWire/Sources/AVLiveWire/WirePayloads.swift +++ b/shared/AVLiveWire/Sources/AVLiveWire/WirePayloads.swift @@ -83,7 +83,7 @@ public struct HandsPayload: Equatable { public func encoded() -> Data { var d = Data() d.append(UInt8(min(hands.count, 255))) - for hand in hands { + for hand in hands.prefix(255) { d.append(hand.isRight ? 1 : 0) for i in 0.. Float { + let v = Float(bitPattern: + UInt32(bigEndianBytes: b[o..] = [] for _ in 0.. Float { - let v = Float(bitPattern: - UInt32(bigEndianBytes: b[o..