Skip to content

Commit

Permalink
report bytes written in upgradeFirmware to be consistent with uploadF…
Browse files Browse the repository at this point in the history
…irmware
  • Loading branch information
solipsis committed Jun 6, 2019
1 parent b4ddb77 commit c1bf446
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/upgradeFirmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ var upgradeFirmwareCmd = &cobra.Command{
}

// upload the downloaded asset to the keepkey
_, err = kk.UploadFirmware(body)
i, err := kk.UploadFirmware(body)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
fmt.Printf("Upload complete %d bytes written\n", i)
}

if !found {
Expand Down

0 comments on commit c1bf446

Please sign in to comment.