ohmtech-rdi / eurorack-blocks

Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust
Other
303 stars 21 forks source link

erbb install openocd launches dfu-util #528

Closed ohmtech-rdi closed 1 year ago

ohmtech-rdi commented 1 year ago

erbb install openocd launches dfu-util if system-wide openocd is not present.

That's because we have some sort of autodetection mechanism, but that is not really relevant now:

if shutil.which ('openocd') is not None and not force_dfu_util:

Fix that by changing the logic.

ohmtech-rdi commented 1 year ago

We could check if the ST-link debugger is connected somehow.