File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,7 @@ def _pi_id(self) -> Optional[str]:
215
215
# Check for Pi boards:
216
216
pi_rev_code = self ._pi_rev_code ()
217
217
if pi_rev_code :
218
- from adafruit_platformdetect .revcodes import (
219
- PiDecoder ,
220
- )
218
+ from adafruit_platformdetect .revcodes import PiDecoder
221
219
222
220
try :
223
221
decoder = PiDecoder (pi_rev_code )
Original file line number Diff line number Diff line change @@ -63,9 +63,7 @@ def id(
63
63
64
64
# Special cases controlled by environment var
65
65
if os .environ .get ("BLINKA_FT232H" ):
66
- from pyftdi .usbtools import (
67
- UsbTools ,
68
- )
66
+ from pyftdi .usbtools import UsbTools
69
67
70
68
# look for it based on PID/VID
71
69
count = len (UsbTools .find_all ([(0x0403 , 0x6014 )]))
@@ -77,9 +75,7 @@ def id(
77
75
self ._chip_id = chips .FT232H
78
76
return self ._chip_id
79
77
if os .environ .get ("BLINKA_FT2232H" ):
80
- from pyftdi .usbtools import (
81
- UsbTools ,
82
- )
78
+ from pyftdi .usbtools import UsbTools
83
79
84
80
# look for it based on PID/VID
85
81
count = len (UsbTools .find_all ([(0x0403 , 0x6010 )]))
You can’t perform that action at this time.
0 commit comments