Skip to content

Commit 9c04e2c

Browse files
committed
LSO…MSO
1 parent b8456ba commit 9c04e2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/KineticSerializer.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,10 @@ open class KineticSerializer {
108108
private static let USBPacketEscape: UInt8 = 0xE6
109109
private static let USBPacketEscapeXOR: UInt8 = 0x80
110110

111-
112111
public static func usbRequestRead(_ read: Bool, write: Bool, id: KineticControlUSBCharacteristic, data: Data? = nil) -> Data {
113112
var crcData: [UInt8] = []
114-
crcData.append(UInt8(id.rawValue >> 8))
115113
crcData.append(UInt8(id.rawValue & 0xFF))
114+
crcData.append(UInt8(id.rawValue >> 8 & 0xFF))
116115
var type: UInt8 = 0x00
117116
if read {
118117
type |= 0x01

0 commit comments

Comments
 (0)