mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: fixed device index use for BLE module (fixes #994)
This commit is contained in:
parent
93de427f9a
commit
76e136a18e
3 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
|||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package ble
|
||||
|
@ -166,7 +167,7 @@ func (mod *BLERecon) Configure() (err error) {
|
|||
golog.SetFlags(0)
|
||||
golog.SetOutput(dummyWriter{mod})
|
||||
|
||||
if mod.gattDevice, err = gatt.NewDevice(defaultBLEClientOptions...); err != nil {
|
||||
if mod.gattDevice, err = gatt.NewDevice(getClientOptions(mod.deviceId)...); err != nil {
|
||||
mod.Debug("error while creating new gatt device: %v", err)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue