Repository: incubator-mynewt-newt Updated Branches: refs/heads/develop c6606bb80 -> 32e6d1990
newtmgr; 1 second is not enough of a timeout for image upload. Erasing slot can take much, much longer. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/32e6d199 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/32e6d199 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/32e6d199 Branch: refs/heads/develop Commit: 32e6d1990482cd174b46bdcbf6703ccff0ac40c4 Parents: c6606bb Author: Marko Kiiskila <[email protected]> Authored: Wed May 25 16:20:15 2016 -0700 Committer: Marko Kiiskila <[email protected]> Committed: Wed May 25 16:20:15 2016 -0700 ---------------------------------------------------------------------- newtmgr/cli/image.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/32e6d199/newtmgr/cli/image.go ---------------------------------------------------------------------- diff --git a/newtmgr/cli/image.go b/newtmgr/cli/image.go index 51c59f0..0cff40b 100644 --- a/newtmgr/cli/image.go +++ b/newtmgr/cli/image.go @@ -155,7 +155,7 @@ func imageUploadCmd(cmd *cobra.Command, args []string) { nmUsage(cmd, err) } - conn, err := transport.NewConnWithTimeout(profile, time.Second) + conn, err := transport.NewConnWithTimeout(profile, time.Second * 16) if err != nil { nmUsage(nil, err) } @@ -172,6 +172,7 @@ func imageUploadCmd(cmd *cobra.Command, args []string) { imageSz := uint32(len(imageFile)) rexmits := 0 + fmt.Println(currOff) for currOff < imageSz { imageUpload, err := protocol.NewImageUpload() if err != nil {
