You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2016/11/04 02:15:44 UTC
incubator-mynewt-newt git commit: Correct MTU for CBOR BLE transport
Repository: incubator-mynewt-newt
Updated Branches:
refs/heads/develop 9a4dd3e00 -> 67dc62ae9
Correct MTU for CBOR BLE transport
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/67dc62ae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/67dc62ae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/67dc62ae
Branch: refs/heads/develop
Commit: 67dc62ae98201c7ef12935480b464051d4359223
Parents: 9a4dd3e
Author: Vipul Rahane <vi...@apache.org>
Authored: Thu Nov 3 19:14:38 2016 -0700
Committer: Vipul Rahane <vi...@apache.org>
Committed: Thu Nov 3 19:15:28 2016 -0700
----------------------------------------------------------------------
newtmgr/cli/image.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/67dc62ae/newtmgr/cli/image.go
----------------------------------------------------------------------
diff --git a/newtmgr/cli/image.go b/newtmgr/cli/image.go
index 7bcb879..f4a200e 100644
--- a/newtmgr/cli/image.go
+++ b/newtmgr/cli/image.go
@@ -251,7 +251,7 @@ func imageUploadCmd(cmd *cobra.Command, args []string) {
rexmits := 0
if profile.Type() == "ble" {
- mtu = uint32((transport.BleMTU - 33) * 3 / 4)
+ mtu = uint32((transport.BleMTU - 64) * 3 / 4)
} else {
/* since this possibly gets base 64 encoded, we want
* to ensure that the payload leaving this layer is 91