From 4d60494bfb2cf43f7e47e9d624131c64497a6c7d Mon Sep 17 00:00:00 2001 From: evilsocket Date: Fri, 22 Feb 2019 14:11:31 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/ble/ble_show_services.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ble/ble_show_services.go b/modules/ble/ble_show_services.go index 31682c9e..37c3ca7d 100644 --- a/modules/ble/ble_show_services.go +++ b/modules/ble/ble_show_services.go @@ -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") }