tests: fix expect_via_protocol

main
Ilya Zhuravlev 2021-05-22 14:54:48 -04:00
parent b717c58d68
commit 67ea09494c
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class SimulatedDevice:
self.expect_data.append((inp, out))
def expect_via_protocol(self, via_protocol):
self.expect("01", struct.pack("BB", 1, via_protocol))
self.expect("01", struct.pack(">BH", 1, via_protocol))
def expect_keyboard_id(self, kbid):
self.expect("FE00", struct.pack("<IQ", 0, kbid))