Restore outer parentheses to appease Black format checks

This commit is contained in:
johnnohj 2024-08-08 18:00:26 +00:00
parent 7a20c35879
commit 1a52b53bcb

View file

@ -109,35 +109,40 @@ class Chip:
product = dev["product_id"] product = dev["product_id"]
# 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.
# pylint: disable=too-many-boolean-expressions
if ( if (
# Raspberry Pi Pico (
vendor == 0xCAFE # Raspberry Pi Pico
and product == 0x4005 vendor == 0xCAFE
) or ( and product == 0x4005
# Waveshare RP2040 One )
vendor == 0x2E8A or (
and product == 0x103A # Waveshare RP2040 One
) or ( vendor == 0x2E8A
# Feather RP2040 and product == 0x103A
# Itsy Bitsy RP2040 )
# QT Py RP2040 or (
# QT2040 Trinkey # Feather RP2040
# MacroPad RP2040 # Itsy Bitsy RP2040
# Feather RP2040 ThinkInk # QT Py RP2040
# Feather RP2040 RFM # QT2040 Trinkey
# Feather RP2040 CAN Bus # MacroPad RP2040
vendor == 0x239A # Feather RP2040 ThinkInk
and product # Feather RP2040 RFM
in ( # Feather RP2040 CAN Bus
0x00F1, vendor == 0x239A
0x00FD, and product
0x00F7, in (
0x0109, 0x00F1,
0x0107, 0x00FD,
0x812C, 0x00F7,
0x812E, 0x0109,
0x8130, 0x0107,
0x0105, 0x812C,
0x812E,
0x8130,
0x0105,
)
) )
): ):
self._chip_id = chips.RP2040_U2IF self._chip_id = chips.RP2040_U2IF