projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
[oweals/u-boot.git]
/
common
/
cmd_fastboot.c
diff --git
a/common/cmd_fastboot.c
b/common/cmd_fastboot.c
index b72f4f310d83debe00e201c824a71e5018afcd90..346ab804541fd951316ca962ca3f5bb727f53244 100644
(file)
--- a/
common/cmd_fastboot.c
+++ b/
common/cmd_fastboot.c
@@
-20,6
+20,12
@@
static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
if (ret)
return ret;
+ if (!g_dnl_board_usb_cable_connected()) {
+ puts("\rUSB cable not detected.\n" \
+ "Command exit.\n");
+ return CMD_RET_FAILURE;
+ }
+
while (1) {
if (g_dnl_detach())
break;