Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72d1f6d4 authored by Gopi Sakshihally Bhuthaiah's avatar Gopi Sakshihally Bhuthaiah
Browse files

fix for exception

TypeError: to_bytes() missing required argument 'length' (pos 1)

Test: atest HidHostTest
Flag: TEST_ONLY
Bug: 368575445
Change-Id: Ib368d61875c1ebf6c4aafddc2da7be23743c945b
parent 6a02fcf4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -674,7 +674,7 @@ def on_set_report_cb(report_id: int, report_type: int, report_size: int, data: b

def on_get_protocol_cb():
    retValue = hid_device.GetSetStatus()
    retValue.data = protocol_mode.to_bytes()
    retValue.data = protocol_mode.to_bytes(length=1)
    retValue.status = hid_device.GetSetReturn.SUCCESS
    return retValue