Skip to content

Commit e000760

Browse files
committed
update detect script
1 parent 364069a commit e000760

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@
6161
ODROID_C2 = "ODROID_C2"
6262
ODROID_N2 = "ODROID_N2"
6363

64-
FTDI_FT232H = "FT232H"
64+
FTDI_FT232H = "FTDI_FT232H"
6565
DRAGONBOARD_410C = "DRAGONBOARD_410C"
6666

6767
SIFIVE_UNLEASHED = "SIFIVE_UNLEASHED"
6868

69-
MICROCHIP_MCP2221 = "MCP2221"
69+
MICROCHIP_MCP2221 = "MICROCHIP_MCP2221"
7070

7171
# pylint: enable=bad-whitespace
7272

bin/detect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
print("Is this a SiFive Unleashed? ", detector.board.SIFIVE_UNLEASHED)
2020
print("Is this an embedded Linux system?", detector.board.any_embedded_linux)
2121
print("Is this a generic Linux PC?", detector.board.GENERIC_LINUX_PC)
22+
print("Is this an OS environment variable special case?", detector.board.FTDI_FT232H |
23+
detector.board.MICROCHIP_MCP2221 )
2224

2325
if detector.board.any_raspberry_pi:
2426
print("Raspberry Pi detected.")

0 commit comments

Comments
 (0)