Skip to content

Commit 2c46b7d

Browse files
committed
update macropad PID
1 parent 0e665c9 commit 2c46b7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ def _rp2040_u2if_id(self):
488488
# QT2040 Trinkey
489489
if product == 0x0109:
490490
return boards.QT2040_TRINKEY_U2IF
491-
# MacroPad RP2040 (NEEDS NEW PID)
492-
if product == 0x0000:
491+
# MacroPad RP2040
492+
if product == 0x0107:
493493
return boards.MACROPAD_U2IF
494494
# Will only reach here if a device was added in chip.py but here.
495495
raise RuntimeError("RP2040_U2IF device was added to chip but not board.")

adafruit_platformdetect/chip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def id(
128128
# QT2040 Trinkey
129129
# MacroPad RP2040 (NEEDS NEW PID)
130130
vendor == 0x239A
131-
and product in (0x00F1, 0x00FD, 0x00F7, 0x0109, 0x0000)
131+
and product in (0x00F1, 0x00FD, 0x00F7, 0x0109, 0x0107)
132132
):
133133
self._chip_id = chips.RP2040_U2IF
134134
return self._chip_id

0 commit comments

Comments
 (0)