Clone of the nRF51822 repository from github The correct home is https://github.com/lancaster-university/nRF51822
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
Diff: source/nRF5xGap.cpp
- 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;