File tree Expand file tree Collapse file tree 1 file changed +33
-28
lines changed Expand file tree Collapse file tree 1 file changed +33
-28
lines changed Original file line number Diff line number Diff line change @@ -109,35 +109,40 @@ def id(
109
109
product = dev ["product_id" ]
110
110
# NOTE: If any products are added here, they need added
111
111
# to _rp2040_u2if_id() in board.py as well.
112
+ # pylint: disable=too-many-boolean-expressions
112
113
if (
113
- # Raspberry Pi Pico
114
- vendor == 0xCAFE
115
- and product == 0x4005
116
- ) or (
117
- # Waveshare RP2040 One
118
- vendor == 0x2E8A
119
- and product == 0x103A
120
- ) or (
121
- # Feather RP2040
122
- # Itsy Bitsy RP2040
123
- # QT Py RP2040
124
- # QT2040 Trinkey
125
- # MacroPad RP2040
126
- # Feather RP2040 ThinkInk
127
- # Feather RP2040 RFM
128
- # Feather RP2040 CAN Bus
129
- vendor == 0x239A
130
- and product
131
- in (
132
- 0x00F1 ,
133
- 0x00FD ,
134
- 0x00F7 ,
135
- 0x0109 ,
136
- 0x0107 ,
137
- 0x812C ,
138
- 0x812E ,
139
- 0x8130 ,
140
- 0x0105 ,
114
+ (
115
+ # Raspberry Pi Pico
116
+ vendor == 0xCAFE
117
+ and product == 0x4005
118
+ )
119
+ or (
120
+ # Waveshare RP2040 One
121
+ vendor == 0x2E8A
122
+ and product == 0x103A
123
+ )
124
+ or (
125
+ # Feather RP2040
126
+ # Itsy Bitsy RP2040
127
+ # QT Py RP2040
128
+ # QT2040 Trinkey
129
+ # MacroPad RP2040
130
+ # Feather RP2040 ThinkInk
131
+ # Feather RP2040 RFM
132
+ # Feather RP2040 CAN Bus
133
+ vendor == 0x239A
134
+ and product
135
+ in (
136
+ 0x00F1 ,
137
+ 0x00FD ,
138
+ 0x00F7 ,
139
+ 0x0109 ,
140
+ 0x0107 ,
141
+ 0x812C ,
142
+ 0x812E ,
143
+ 0x8130 ,
144
+ 0x0105 ,
145
+ )
141
146
)
142
147
):
143
148
self ._chip_id = chips .RP2040_U2IF
You can’t perform that action at this time.
0 commit comments