Diff between ed4c79e6fd8f4e4cb8e1c9b784367c7214cfa1d7 and 307eb8cc8e94b678dd5c52d3a2bf8d4020f017d2

Changed Files

File Additions Deletions Status
src/gatt-client.c +2 -2 modified

Full Patch

diff --git a/src/gatt-client.c b/src/gatt-client.c
index a9bfc28..20c3fbe 100644
--- a/src/gatt-client.c
+++ b/src/gatt-client.c
@@ -1050,8 +1050,8 @@ static DBusMessage *characteristic_write_value(DBusConnection *conn,
 			return NULL;
 	}
 
-	if ((type && strcasecmp(type, "command")) || offset ||
-			!(chrc->props & BT_GATT_CHRC_PROP_WRITE_WITHOUT_RESP))
+	if ((type && strcasecmp(type, "command")) || offset || (!type &&
+			!(chrc->props & BT_GATT_CHRC_PROP_WRITE_WITHOUT_RESP)))
 		goto fail;
 
 	supported = true;