test

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Mon Aug 10 15:18:44 2015 +0100
Parent:
410:b1d564ca6094
Child:
412:89b72336af12
Commit message:
Synchronized with git rev 8830c075
Author: Joshua Slater
getAppearance now checks for correct success code from sd_ble_gap_appearance_get

Changed in this revision

source/nRF5xGap.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;