mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
fix: fixed a bug which caused BLE handles to be displayed incorrectly (fixes #465)
This commit is contained in:
parent
bcc19ec1a4
commit
020d471b95
1 changed files with 4 additions and 2 deletions
|
@ -353,7 +353,7 @@ func (mod *BLERecon) showServices(p gatt.Peripheral, services []*gatt.Service) {
|
|||
|
||||
if multi == nil {
|
||||
rows = append(rows, []string{
|
||||
fmt.Sprintf("%04x", ch.Handle()),
|
||||
fmt.Sprintf("%04x", ch.VHandle()),
|
||||
name,
|
||||
strings.Join(props, ", "),
|
||||
data,
|
||||
|
@ -362,7 +362,7 @@ func (mod *BLERecon) showServices(p gatt.Peripheral, services []*gatt.Service) {
|
|||
for i, m := range multi {
|
||||
if i == 0 {
|
||||
rows = append(rows, []string{
|
||||
fmt.Sprintf("%04x", ch.Handle()),
|
||||
fmt.Sprintf("%04x", ch.VHandle()),
|
||||
name,
|
||||
strings.Join(props, ", "),
|
||||
m,
|
||||
|
@ -373,6 +373,8 @@ func (mod *BLERecon) showServices(p gatt.Peripheral, services []*gatt.Service) {
|
|||
}
|
||||
}
|
||||
}
|
||||
// blank row after every service, bleah style
|
||||
rows = append(rows, []string{"", "", "", ""})
|
||||
}
|
||||
|
||||
if wantsToWrite && !foundToWrite {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue