1

Fork of nRF51822 by Nordic Semiconductor

Revision:
348:922c8b211979
Parent:
347:b5d18c33fd8a
Child:
358:0feab33fde20
--- a/nRF51Gap.cpp	Fri Jun 19 15:55:35 2015 +0100
+++ b/nRF51Gap.cpp	Fri Jun 19 15:55:36 2015 +0100
@@ -423,7 +423,7 @@
     }
 }
 
-ble_error_t nRF51Gap::setAppearance(uint16_t appearance)
+ble_error_t nRF51Gap::setAppearance(GapAdvertisingData::Appearance appearance)
 {
     if (sd_ble_gap_appearance_set(appearance) == NRF_SUCCESS) {
         return BLE_ERROR_NONE;
@@ -432,9 +432,9 @@
     }
 }
 
-ble_error_t nRF51Gap::getAppearance(uint16_t *appearanceP)
+ble_error_t nRF51Gap::getAppearance(GapAdvertisingData::Appearance *appearanceP)
 {
-    if (sd_ble_gap_appearance_get(appearanceP)) {
+    if (sd_ble_gap_appearance_get(reinterpret_cast<uint16_t *>(appearanceP))) {
         return BLE_ERROR_NONE;
     } else {
         return BLE_ERROR_PARAM_OUT_OF_RANGE;