Commit a8a3956
Mykhailo Androsiuk
Defer pyftdi import: only import when --cpld option is used
Previously, the pyftdi module was imported unconditionally, causing
errors even when CPLD functionality was not required.
Now the import is performed only if the `--cpld` option is used,
avoiding unnecessary failures and improving script flexibility.
Signed-off-by: Mykhailo Androsiuk <mykhailo_androsiuk@epam.com>1 parent e23bd4f commit a8a3956
1 file changed
+10
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
197 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
198 | 204 | | |
199 | 205 | | |
200 | 206 | | |
| |||
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
| 223 | + | |
217 | 224 | | |
218 | 225 | | |
219 | 226 | | |
| |||
385 | 392 | | |
386 | 393 | | |
387 | 394 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | 395 | | |
402 | 396 | | |
403 | 397 | | |
| |||
0 commit comments