Ticket #1225 (closed enhancement: fixed)

Opened 11 years ago

Last modified 10 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:


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);


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

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


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

Change History

Changed 11 years ago by onno@…

progress bar patch

comment:1 Changed 11 years ago by roh

  • Owner changed from laforge@… to laforge

comment:2 Changed 10 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.