Ticket #1225 (closed enhancement: fixed)

Opened 10 years ago

Last modified 9 years ago

visual enhancement for dfu-util

Reported by: onno@… Owned by: laforge
Priority: high Milestone:
Component: host utilities Version: current svn head
Severity: minor Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

No one knows where the dfu-util progress bar ends. The appended patch fixes this.

diff --git a/src/host/dfu-util/src/sam7dfu.c b/src/host/dfu-util/src/sam7dfu.c
index 536b2e1..eff3f48 100644
--- a/src/host/dfu-util/src/sam7dfu.c
+++ b/src/host/dfu-util/src/sam7dfu.c
@@ -108,6 +108,13 @@ int sam7dfu_do_dnload(struct usb_dev_handle *usb_handle,
int interface,

#if 0

read(fd, DFU_HDR);

#endif

+ printf(" |");
+ {
+ int i;
+ for (i=0; i< PROGRESS_BAR_WIDTH; i++)
+ printf("-");
+ printf("|\n");
+ }

printf("Starting download: [");
fflush(stdout);
while (bytes_sent < st.st_size /* - DFU_HDR */) {

Attachments

dfubar.patch (554 bytes) - added by onno@… 10 years ago.
progress bar patch

Change History

Changed 10 years ago by onno@…

progress bar patch

comment:1 Changed 9 years ago by roh

  • Owner changed from laforge@… to laforge

comment:2 Changed 9 years ago by john_lee

  • Status changed from new to closed
  • HasPatchForReview unset
  • Resolution set to fixed

in r1189 already.

Note: See TracTickets for help on using tickets.