mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-21 01:09:59 +00:00
nimble/gap: Solving bug in accessing ble_svc_gap_appearance
This commit is contained in:
committed by
ccollins476ad
parent
52e648989b
commit
377842d8b4
@@ -161,7 +161,7 @@ ble_svc_gap_appearance_write_access(struct ble_gatt_access_ctxt *ctxt)
|
||||
return BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN;
|
||||
}
|
||||
|
||||
rc = ble_hs_mbuf_to_flat(ctxt->om, ble_svc_gap_appearance, om_len, NULL);
|
||||
rc = ble_hs_mbuf_to_flat(ctxt->om, &ble_svc_gap_appearance, om_len, NULL);
|
||||
if (rc != 0) {
|
||||
return BLE_ATT_ERR_UNLIKELY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user