mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
update variable name to avoid using keyword
This commit is contained in:
committed by
Abhinav Kudnar
parent
bb07639d41
commit
a42e1469fe
@@ -1035,7 +1035,7 @@ struct ble_gatt_cpfd {
|
||||
uint16_t unit;
|
||||
|
||||
/** The name space of the description. */
|
||||
uint8_t namespace;
|
||||
uint8_t name_space;
|
||||
|
||||
/** The description of this characteristic. Depends on name space. */
|
||||
uint16_t description;
|
||||
|
||||
@@ -760,7 +760,7 @@ ble_gatts_cpfd_is_sane(const struct ble_gatt_cpfd *cpfd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ((cpfd->namespace == BLE_GATT_CHR_NAMESPACE_BT_SIG) && (cpfd->description > 0x0110)) {
|
||||
if ((cpfd->name_space == BLE_GATT_CHR_NAMESPACE_BT_SIG) && (cpfd->description > 0x0110)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1057,7 +1057,7 @@ ble_gatts_cpfd_access(uint16_t conn_handle, uint16_t attr_handle,
|
||||
rc += os_mbuf_append(*om, &(cpfd->format), sizeof(cpfd->format));
|
||||
rc += os_mbuf_append(*om, &(cpfd->exponent), sizeof(cpfd->exponent));
|
||||
rc += os_mbuf_append(*om, &(cpfd->unit), sizeof(cpfd->unit));
|
||||
rc += os_mbuf_append(*om, &(cpfd->namespace), sizeof(cpfd->namespace));
|
||||
rc += os_mbuf_append(*om, &(cpfd->name_space), sizeof(cpfd->name_space));
|
||||
rc += os_mbuf_append(*om, &(cpfd->description), sizeof(cpfd->description));
|
||||
|
||||
return ((rc == 0) ? 0 : BLE_ATT_ERR_INSUFFICIENT_RES);
|
||||
|
||||
Reference in New Issue
Block a user