File tree Expand file tree Collapse file tree 1 file changed +27
-25
lines changed Expand file tree Collapse file tree 1 file changed +27
-25
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def __init__(self, detector) -> None:
43
43
# pylint: disable=invalid-name,too-many-branches,too-many-return-statements
44
44
@property
45
45
def id (
46
- self ,
46
+ self ,
47
47
) -> Optional [str ]:
48
48
"""Return a unique id for the detected chip, if any."""
49
49
# There are some times we want to trick the platform detection
@@ -110,31 +110,31 @@ def 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
112
if (
113
- # Raspberry Pi Pico
114
- vendor == 0xCAFE
115
- and product == 0x4005
113
+ # Raspberry Pi Pico
114
+ vendor == 0xCAFE
115
+ and product == 0x4005
116
116
) or (
117
- # Feather RP2040
118
- # Itsy Bitsy RP2040
119
- # QT Py RP2040
120
- # QT2040 Trinkey
121
- # MacroPad RP2040
122
- # Feather RP2040 ThinkInk
123
- # Feather RP2040 RFM
124
- # Feather RP2040 CAN Bus
125
- vendor == 0x239A
126
- and product
127
- in (
128
- 0x00F1 ,
129
- 0x00FD ,
130
- 0x00F7 ,
131
- 0x0109 ,
132
- 0x0107 ,
133
- 0x812C ,
134
- 0x812E ,
135
- 0x8130 ,
136
- 0x0105 ,
137
- )
117
+ # Feather RP2040
118
+ # Itsy Bitsy RP2040
119
+ # QT Py RP2040
120
+ # QT2040 Trinkey
121
+ # MacroPad RP2040
122
+ # Feather RP2040 ThinkInk
123
+ # Feather RP2040 RFM
124
+ # Feather RP2040 CAN Bus
125
+ vendor == 0x239A
126
+ and product
127
+ in (
128
+ 0x00F1 ,
129
+ 0x00FD ,
130
+ 0x00F7 ,
131
+ 0x0109 ,
132
+ 0x0107 ,
133
+ 0x812C ,
134
+ 0x812E ,
135
+ 0x8130 ,
136
+ 0x0105 ,
137
+ )
138
138
):
139
139
self ._chip_id = chips .RP2040_U2IF
140
140
return self ._chip_id
@@ -221,8 +221,10 @@ def _linux_id(self) -> Optional[str]:
221
221
# Newer Builds
222
222
if self .detector .check_dt_compatible_value ("jh7100" ):
223
223
return chips .JH71X0
224
+
224
225
if self .detector .check_dt_compatible_value ("jh7110" ):
225
226
return chips .JH7110
227
+
226
228
if self .detector .check_dt_compatible_value ("sun8i-a33" ):
227
229
return chips .A33
228
230
You can’t perform that action at this time.
0 commit comments