Browse Source

Black linted

pull/77/head
Melissa LeBlanc-Williams 4 years ago
parent
commit
22d2dfe0c8
2 changed files with 6 additions and 2 deletions
  1. +2
    -1
      adafruit_platformdetect/chip.py
  2. +4
    -1
      bin/detect.py

+ 2
- 1
adafruit_platformdetect/chip.py View File

@ -89,9 +89,10 @@ class Chip:
)
if os.environ.get("BLINKA_GREATFET"):
from greatfet import GreatFET
from greatfet.errors import DeviceNotFoundError
try:
gf = GreatFET()
_ = GreatFET()
return chips.LPC4330
except DeviceNotFoundError():
raise RuntimeError(


+ 4
- 1
bin/detect.py View File

@ -25,7 +25,10 @@ print("Is this an embedded Linux system?", detector.board.any_embedded_linux)
print("Is this a generic Linux PC?", detector.board.GENERIC_LINUX_PC)
print(
"Is this an OS environment variable special case?",
detector.board.FTDI_FT232H | detector.board.MICROCHIP_MCP2221 | detector.board.BINHO_NOVA | detector.board.GREATFET_ONE,
detector.board.FTDI_FT232H
| detector.board.MICROCHIP_MCP2221
| detector.board.BINHO_NOVA
| detector.board.GREATFET_ONE,
)
if detector.board.any_raspberry_pi:


|||||||
x
 
000:0
Loading…
Cancel
Save