device: permit onboard profiles data version 5

This commit is contained in:
Peter F. Patel-Schneider 2025-12-03 13:01:31 -05:00
parent f9ce65fd18
commit 0446c93f27
1 changed files with 1 additions and 1 deletions

View File

@ -1450,7 +1450,7 @@ class OnboardProfiles:
device.ping()
response = device.feature_request(SupportedFeature.ONBOARD_PROFILES, 0x00)
memory, profile, _macro = struct.unpack("!BBB", response[0:3])
if memory != 0x01 or profile > 0x04:
if memory != 0x01 or profile > 0x05:
return
count, oob, buttons, sectors, size, shift = struct.unpack("!BBBBHB", response[3:10])
gbuttons = buttons if (shift & 0x3 == 0x2) else 0