From ff8fd9c62d022334b841e95849f835491bf58e8b Mon Sep 17 00:00:00 2001 From: evilsocket Date: Fri, 22 Feb 2019 14:11:03 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/ble/ble_show_services.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ble/ble_show_services.go b/modules/ble/ble_show_services.go index 58f72a7a..31682c9e 100644 --- a/modules/ble/ble_show_services.go +++ b/modules/ble/ble_show_services.go @@ -185,6 +185,7 @@ 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 {