From 6508a68d38b8826668c76c3e795ae6c5e1c5c980 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 2 Jul 2015 16:22:06 +0200 Subject: [PATCH] remove useless test --- ble/gatt_client.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ble/gatt_client.c b/ble/gatt_client.c index a6014a0e5..9bd94eda0 100644 --- a/ble/gatt_client.c +++ b/ble/gatt_client.c @@ -604,10 +604,8 @@ static void report_gatt_characteristic_descriptor(gatt_client_t * peripheral, ui le_characteristic_descriptor_t descriptor; descriptor.handle = handle; descriptor.uuid16 = peripheral->uuid16; + memcpy(descriptor.uuid128, peripheral->uuid128, 16); event.value_offset = value_offset; - if (peripheral->uuid128){ - memcpy(descriptor.uuid128, peripheral->uuid128, 16); - } event.value = value; event.value_length = value_length;