mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: fixed a bug when AttEcodeSuccess was returned as an error by the gatt lib (fixes #498)
This commit is contained in:
parent
cfd93c555a
commit
7d46e7aa7a
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ func (mod *BLERecon) onPeriphConnected(p gatt.Peripheral, err error) {
|
|||
|
||||
mod.Info("connected, enumerating all the things for %s!", p.ID())
|
||||
services, err := p.DiscoverServices(nil)
|
||||
if err != nil {
|
||||
// https://github.com/bettercap/bettercap/issues/498
|
||||
if err != nil && err.Error() != "success" {
|
||||
mod.Error("error discovering services: %s", err)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue