Changed the device name.

Dependents:   BLE_Health_Thermometer_HeartRateMonitor

Fork of BLE_API_Native_IRC by Yoshihiro TSUBOI

Revision:
13:1800682b5703
Parent:
0:4c3097c65247
--- a/hw/nRF51822n/nRF51Gap.cpp	Wed Feb 19 09:08:15 2014 +0000
+++ b/hw/nRF51822n/nRF51Gap.cpp	Thu Feb 20 11:12:32 2014 +0000
@@ -86,10 +86,13 @@
     //    }
     //}
     
-    /* ToDo: Send advertising data! */
+    /* Send advertising data! */
     ASSERT( ERROR_NONE == sd_ble_gap_adv_data_set(advData.getPayload(), advData.getPayloadLen(),
                                                   scanResponse.getPayload(), scanResponse.getPayloadLen()), BLE_ERROR_PARAM_OUT_OF_RANGE);
 
+	/* Make sure the GAP Service appearance value is aligned with the appearance from GapAdvertisingData */	
+	ASSERT( ERROR_NONE == sd_ble_gap_appearance_set(advData.getAppearance()), BLE_ERROR_PARAM_OUT_OF_RANGE);
+
     /* ToDo: Perform some checks on the payload, for example the Scan Response can't */
     /* contains a flags AD type, etc. */