Skip to content

Commit 358fea7

Browse files
authored
Merge pull request #80 from quic-bjorande/for-linux-msm/dont-detect-fastboot-done-by-usb
cdba: Rely on fastboot completion rather than USB disconnect
2 parents 2f3e661 + 0852da5 commit 358fea7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cdba.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,13 +533,11 @@ static int handle_message(struct circ_buf *buf)
533533
} else {
534534
quit = true;
535535
}
536-
} else {
537-
fastboot_done = true;
538-
// printf("======================================== MSG_FASTBOOT_PRESENT(off)\n");
539536
}
540537
break;
541538
case MSG_FASTBOOT_DOWNLOAD:
542539
// printf("======================================== MSG_FASTBOOT_DOWNLOAD\n");
540+
fastboot_done = true;
543541
break;
544542
case MSG_FASTBOOT_BOOT:
545543
// printf("======================================== MSG_FASTBOOT_BOOT\n");
@@ -556,6 +554,7 @@ static int handle_message(struct circ_buf *buf)
556554
break;
557555
case MSG_FASTBOOT_CONTINUE:
558556
// printf("======================================== MSG_FASTBOOT_CONTINUE\n");
557+
fastboot_done = true;
559558
break;
560559
default:
561560
fprintf(stderr, "unk %d len %d\n", msg->type, msg->len);

0 commit comments

Comments
 (0)