Commit 12f96dd
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 bcef392 commit 12f96dd
1 file changed
+10
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
195 | | - | |
196 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
| |||
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
| 222 | + | |
216 | 223 | | |
217 | 224 | | |
218 | 225 | | |
| |||
383 | 390 | | |
384 | 391 | | |
385 | 392 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | 393 | | |
400 | 394 | | |
401 | 395 | | |
| |||
0 commit comments