Diff between 1ba9e5f21ca2bd2e60a9fec9f520caf800d56d60 and 4262170a7989e63c0a340a7acef4181045930e8d

Changed Files

File Additions Deletions Status
client/gatt.c +7 -3 modified

Full Patch

diff --git a/client/gatt.c b/client/gatt.c
index 6c76039..e1d2b54 100644
--- a/client/gatt.c
+++ b/client/gatt.c
@@ -3197,9 +3197,13 @@ static void proxy_property_changed(GDBusProxy *proxy, const char *name,
 			dbus_message_iter_get_fixed_array(&array, &value, &len);
 		}
 
-		write_value(&chrc->value_len, &chrc->value, value, len,
-				0, chrc->max_val_len);
-		bt_shell_hexdump(value, len);
+		if (write_value(&chrc->value_len, &chrc->value, value, len,
+				0, chrc->max_val_len)) {
+			bt_shell_printf("Unable to update property value for "
+					"%s\n", name);
+		} else {
+			bt_shell_hexdump(value, len);
+		}
 	}
 
 	g_dbus_emit_property_changed(conn, chrc->path, CHRC_INTERFACE, name);