Skip to content

Commit 6de8921

Browse files
reformatted the changed files
1 parent 086984c commit 6de8921

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

adafruit_platformdetect/chip.py

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, detector) -> None:
4343
# pylint: disable=invalid-name,too-many-branches,too-many-return-statements
4444
@property
4545
def id(
46-
self,
46+
self,
4747
) -> Optional[str]:
4848
"""Return a unique id for the detected chip, if any."""
4949
# There are some times we want to trick the platform detection
@@ -110,31 +110,31 @@ def id(
110110
# NOTE: If any products are added here, they need added
111111
# to _rp2040_u2if_id() in board.py as well.
112112
if (
113-
# Raspberry Pi Pico
114-
vendor == 0xCAFE
115-
and product == 0x4005
113+
# Raspberry Pi Pico
114+
vendor == 0xCAFE
115+
and product == 0x4005
116116
) 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+
)
138138
):
139139
self._chip_id = chips.RP2040_U2IF
140140
return self._chip_id
@@ -221,8 +221,10 @@ def _linux_id(self) -> Optional[str]:
221221
# Newer Builds
222222
if self.detector.check_dt_compatible_value("jh7100"):
223223
return chips.JH71X0
224+
224225
if self.detector.check_dt_compatible_value("jh7110"):
225226
return chips.JH7110
227+
226228
if self.detector.check_dt_compatible_value("sun8i-a33"):
227229
return chips.A33
228230

0 commit comments

Comments
 (0)