Closed Bastian-Krause closed 3 years ago
Why shouldn't this be the default?
Hm? It is the default, look at the wait
parameter in the method header. The only call of UsbSdMux.mode_disconnect(wait=False)
happens in UsbSdMux.__init__()
which sets the output-values to defaults. I don't really understand the reasoning behind this, maybe @SmithChart can help here? All I understand is that the wait
parameter is currently unused and I tried to fix that by doing the obvious.
Only sleep one second until the voltage-supply of the SD card is ~0 if
wait=True
is given.Fixes: 3f9f04a ("High Level Application to control the usb-sd-mux from the command line")