mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-04 11:32:47 +00:00
NimBLE: Fix compilation when asserts are disabled
Already present in the upstream repo - PR: #481
This commit is contained in:
@@ -205,6 +205,7 @@ ble_svc_gap_access(uint16_t conn_handle, uint16_t attr_handle,
|
||||
rc = ble_svc_gap_device_name_write_access(ctxt);
|
||||
} else {
|
||||
assert(0);
|
||||
rc = BLE_ATT_ERR_UNLIKELY;
|
||||
}
|
||||
return rc;
|
||||
|
||||
@@ -215,6 +216,7 @@ ble_svc_gap_access(uint16_t conn_handle, uint16_t attr_handle,
|
||||
rc = ble_svc_gap_appearance_write_access(ctxt);
|
||||
} else {
|
||||
assert(0);
|
||||
rc = BLE_ATT_ERR_UNLIKELY;
|
||||
}
|
||||
return rc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user