You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2017/06/30 01:25:06 UTC
[mynewt-newtmgr] branch master updated: newtmgr - Fix build error
on linux.
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git
The following commit(s) were added to refs/heads/master by this push:
new e20e599 newtmgr - Fix build error on linux.
e20e599 is described below
commit e20e599f956cb7caf13eebf41e6f572284339439
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Thu Jun 29 18:25:15 2017 -0700
newtmgr - Fix build error on linux.
---
newtmgr/bll/bll_common.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/newtmgr/bll/bll_common.go b/newtmgr/bll/bll_common.go
index f5cd450..cea7973 100644
--- a/newtmgr/bll/bll_common.go
+++ b/newtmgr/bll/bll_common.go
@@ -1,11 +1,11 @@
package bll
import (
+ "runtime"
"time"
log "github.com/Sirupsen/logrus"
"github.com/currantlabs/ble"
- "github.com/currantlabs/ble/darwin"
"mynewt.apache.org/newtmgr/nmxact/bledefs"
)
@@ -27,8 +27,8 @@ func exchangeMtu(cln ble.Client, preferredMtu int) (int, error) {
return 0, err
}
- // If this isn't macOS, or
- if _, ok := cln.(*darwin.Client); !ok {
+ // If this isn't macOS, accept the MTU the library reported.
+ if runtime.GOOS != "darwin" {
break
}
--
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" <co...@mynewt.apache.org>'].