misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-02-22 14:11:03 +01:00
parent 87b667c1dc
commit ff8fd9c62d
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -185,6 +185,7 @@ func parseProperties(ch *gatt.Characteristic) (props []string, isReadable bool,
if (mask&gatt.CharWriteNR) != 0 || (mask&gatt.CharWrite) != 0 { if (mask&gatt.CharWriteNR) != 0 || (mask&gatt.CharWrite) != 0 {
props = append(props, tui.Bold("WRITE")) props = append(props, tui.Bold("WRITE"))
isWritable = true isWritable = true
isReadable = true
withResponse = (mask & gatt.CharWriteNR) == 0 withResponse = (mask & gatt.CharWriteNR) == 0
} }
if (mask & gatt.CharNotify) != 0 { if (mask & gatt.CharNotify) != 0 {