reformatted the changed files
This commit is contained in:
parent
086984c843
commit
6de892138c
1 changed files with 27 additions and 25 deletions
|
|
@ -43,7 +43,7 @@ class Chip:
|
||||||
# pylint: disable=invalid-name,too-many-branches,too-many-return-statements
|
# pylint: disable=invalid-name,too-many-branches,too-many-return-statements
|
||||||
@property
|
@property
|
||||||
def id(
|
def id(
|
||||||
self,
|
self,
|
||||||
) -> Optional[str]:
|
) -> Optional[str]:
|
||||||
"""Return a unique id for the detected chip, if any."""
|
"""Return a unique id for the detected chip, if any."""
|
||||||
# There are some times we want to trick the platform detection
|
# There are some times we want to trick the platform detection
|
||||||
|
|
@ -110,31 +110,31 @@ class Chip:
|
||||||
# NOTE: If any products are added here, they need added
|
# NOTE: If any products are added here, they need added
|
||||||
# to _rp2040_u2if_id() in board.py as well.
|
# to _rp2040_u2if_id() in board.py as well.
|
||||||
if (
|
if (
|
||||||
# Raspberry Pi Pico
|
# Raspberry Pi Pico
|
||||||
vendor == 0xCAFE
|
vendor == 0xCAFE
|
||||||
and product == 0x4005
|
and product == 0x4005
|
||||||
) or (
|
) or (
|
||||||
# Feather RP2040
|
# Feather RP2040
|
||||||
# Itsy Bitsy RP2040
|
# Itsy Bitsy RP2040
|
||||||
# QT Py RP2040
|
# QT Py RP2040
|
||||||
# QT2040 Trinkey
|
# QT2040 Trinkey
|
||||||
# MacroPad RP2040
|
# MacroPad RP2040
|
||||||
# Feather RP2040 ThinkInk
|
# Feather RP2040 ThinkInk
|
||||||
# Feather RP2040 RFM
|
# Feather RP2040 RFM
|
||||||
# Feather RP2040 CAN Bus
|
# Feather RP2040 CAN Bus
|
||||||
vendor == 0x239A
|
vendor == 0x239A
|
||||||
and product
|
and product
|
||||||
in (
|
in (
|
||||||
0x00F1,
|
0x00F1,
|
||||||
0x00FD,
|
0x00FD,
|
||||||
0x00F7,
|
0x00F7,
|
||||||
0x0109,
|
0x0109,
|
||||||
0x0107,
|
0x0107,
|
||||||
0x812C,
|
0x812C,
|
||||||
0x812E,
|
0x812E,
|
||||||
0x8130,
|
0x8130,
|
||||||
0x0105,
|
0x0105,
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
self._chip_id = chips.RP2040_U2IF
|
self._chip_id = chips.RP2040_U2IF
|
||||||
return self._chip_id
|
return self._chip_id
|
||||||
|
|
@ -221,8 +221,10 @@ class Chip:
|
||||||
# Newer Builds
|
# Newer Builds
|
||||||
if self.detector.check_dt_compatible_value("jh7100"):
|
if self.detector.check_dt_compatible_value("jh7100"):
|
||||||
return chips.JH71X0
|
return chips.JH71X0
|
||||||
|
|
||||||
if self.detector.check_dt_compatible_value("jh7110"):
|
if self.detector.check_dt_compatible_value("jh7110"):
|
||||||
return chips.JH7110
|
return chips.JH7110
|
||||||
|
|
||||||
if self.detector.check_dt_compatible_value("sun8i-a33"):
|
if self.detector.check_dt_compatible_value("sun8i-a33"):
|
||||||
return chips.A33
|
return chips.A33
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue