follow go-bluetooth refactored code recently

This commit is contained in:
cuu 2019-02-13 01:47:08 +08:00
parent 021ebc3a3a
commit 6e97d60611

View File

@ -7,7 +7,7 @@ import (
"github.com/muka/go-bluetooth/api" "github.com/muka/go-bluetooth/api"
"github.com/muka/go-bluetooth/emitter" "github.com/muka/go-bluetooth/emitter"
"github.com/muka/go-bluetooth/linux" "github.com/muka/go-bluetooth/linux/btmgmt"
"github.com/muka/go-bluetooth/bluez/profile" "github.com/muka/go-bluetooth/bluez/profile"
/* /*
@ -52,7 +52,7 @@ func (self *BluetoothPlugin) Init( main_screen *UI.MainScreen ) {
log.Println("Reset bluetooth device") log.Println("Reset bluetooth device")
a := linux.NewBtMgmt(adapterID) a := btmgmt.NewBtMgmt(adapterID)
err := a.Reset() err := a.Reset()
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)