mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
ff8fd9c62d
commit
4d60494bfb
1 changed files with 1 additions and 2 deletions
|
@ -185,7 +185,6 @@ func parseProperties(ch *gatt.Characteristic) (props []string, isReadable bool,
|
|||
if (mask&gatt.CharWriteNR) != 0 || (mask&gatt.CharWrite) != 0 {
|
||||
props = append(props, tui.Bold("WRITE"))
|
||||
isWritable = true
|
||||
isReadable = true
|
||||
withResponse = (mask & gatt.CharWriteNR) == 0
|
||||
}
|
||||
if (mask & gatt.CharNotify) != 0 {
|
||||
|
@ -265,7 +264,7 @@ func parseConnectionParams(raw []byte) []string {
|
|||
// org.bluetooth.characteristic.gap.peripheral_privacy_flag
|
||||
func parsePrivacyFlag(raw []byte) string {
|
||||
if raw[0] == 0x0 {
|
||||
return tui.Green("Privacy Diabled")
|
||||
return tui.Green("Privacy Disabled")
|
||||
}
|
||||
return tui.Red("Privacy Enabled")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue