Tweak: use the Usage page const, not an immediate (#525)

Co-authored-by: kaczmarczyck <43844792+kaczmarczyck@users.noreply.github.com>
This commit is contained in:
Liam Murphy
2022-08-09 00:23:19 +10:00
committed by GitHub
parent 262e505ef7
commit f07be7f2ac

View File

@@ -282,7 +282,7 @@ def get_fido_device() -> CtapHidDevice:
def get_fido_device_vendor() -> CtapHidDevice: def get_fido_device_vendor() -> CtapHidDevice:
# Patch for the Vendor Usage Page. # Patch for the Vendor Usage Page.
with patch.object(fido2.hid.base, 'FIDO_USAGE_PAGE', 0xFF00): with patch.object(fido2.hid.base, 'FIDO_USAGE_PAGE', _VENDOR_USAGE_PAGE):
return get_fido_device() return get_fido_device()