No changes

Fork of nRF51822 by Nordic Semiconductor

Revision:
411:d0f102a075f7
Parent:
410:b1d564ca6094
Child:
415:92bda1851be2
--- a/source/nRF5xGap.cpp	Mon Aug 10 15:18:44 2015 +0100
+++ b/source/nRF5xGap.cpp	Mon Aug 10 15:18:44 2015 +0100
@@ -434,7 +434,7 @@
 
 ble_error_t nRF5xGap::getAppearance(GapAdvertisingData::Appearance *appearanceP)
 {
-    if (sd_ble_gap_appearance_get(reinterpret_cast<uint16_t *>(appearanceP))) {
+    if ((sd_ble_gap_appearance_get(reinterpret_cast<uint16_t *>(appearanceP)) == NRF_SUCCESS)) {
         return BLE_ERROR_NONE;
     } else {
         return BLE_ERROR_PARAM_OUT_OF_RANGE;