Commit a32d2791 authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by Lukasz Majewski

fastboot: Proper download gadget unregister and clear when cable is missing

Signed-off-by: default avatarPaul Kocialkowski <contact@paulk.fr>
parent e2ec3e46
......@@ -23,6 +23,8 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
if (!g_dnl_board_usb_cable_connected()) {
puts("\rUSB cable not detected.\n" \
"Command exit.\n");
g_dnl_unregister();
g_dnl_clear_detach();
return CMD_RET_FAILURE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment