No changes

Fork of nRF51822 by Nordic Semiconductor

Revision:
535:f9ab1b333b44
Parent:
530:f6d563460578
Child:
541:884f95bf5351
diff -r bcfe7a90edb9 -r f9ab1b333b44 source/btle/custom/custom_helper.cpp
--- a/source/btle/custom/custom_helper.cpp	Wed Dec 02 13:14:18 2015 +0000
+++ b/source/btle/custom/custom_helper.cpp	Thu Dec 10 10:35:58 2015 +0000
@@ -148,9 +148,8 @@
     ble_uuid128_t base_uuid;
     uint8_t       uuid_type = 0;
 
-    /* Reverse the bytes since ble_uuid128_t is LSB */
     for (unsigned i = 0; i < UUID::LENGTH_OF_LONG_UUID; i++) {
-        base_uuid.uuid128[i] = p_uuid_base[UUID::LENGTH_OF_LONG_UUID - 1 - i];
+        base_uuid.uuid128[i] = p_uuid_base[i];
     }
 
     ASSERT_INT( ERROR_NONE, sd_ble_uuid_vs_add( &base_uuid, &uuid_type ), 0);
@@ -168,9 +167,8 @@
 {
     UUID::LongUUIDBytes_t uuid_base_le;
 
-    /* Reverse the bytes since ble_uuid128_t is LSB */
     for (uint8_t i = 0; i < UUID::LENGTH_OF_LONG_UUID; i++) {
-        uuid_base_le[i] = p_uuid_base[UUID::LENGTH_OF_LONG_UUID - 1 - i];
+        uuid_base_le[i] = p_uuid_base[i];
     }
 
     ASSERT_STATUS( sd_ble_uuid_decode(UUID::LENGTH_OF_LONG_UUID, uuid_base_le, p_uuid));