mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -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 {
|
if multi == nil {
|
||||||
rows = append(rows, []string{
|
rows = append(rows, []string{
|
||||||
fmt.Sprintf("%04x", ch.Handle()),
|
fmt.Sprintf("%04x", ch.VHandle()),
|
||||||
name,
|
name,
|
||||||
strings.Join(props, ", "),
|
strings.Join(props, ", "),
|
||||||
data,
|
data,
|
||||||
|
@ -362,7 +362,7 @@ func (mod *BLERecon) showServices(p gatt.Peripheral, services []*gatt.Service) {
|
||||||
for i, m := range multi {
|
for i, m := range multi {
|
||||||
if i == 0 {
|
if i == 0 {
|
||||||
rows = append(rows, []string{
|
rows = append(rows, []string{
|
||||||
fmt.Sprintf("%04x", ch.Handle()),
|
fmt.Sprintf("%04x", ch.VHandle()),
|
||||||
name,
|
name,
|
||||||
strings.Join(props, ", "),
|
strings.Join(props, ", "),
|
||||||
m,
|
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 {
|
if wantsToWrite && !foundToWrite {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue