getAppearance now checks for correct success code from sd_ble_gap_appearance_get
This commit is contained in:
parent
bf25a5a4c4
commit
8830c07558
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ ble_error_t nRF5xGap::setAppearance(GapAdvertisingData::Appearance appearance)
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue