This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 939cff9b3 nimble/host: Fix wrong Host Error Code used in GATT client
code
939cff9b3 is described below
commit 939cff9b31516397c1aa467452e055a46938f3e4
Author: Guy Mishol <[email protected]>
AuthorDate: Fri Jan 3 16:53:35 2025 +0200
nimble/host: Fix wrong Host Error Code used in GATT client code
A wrong Host Error Code was used in ble_gattc.c file cause compilation
error.
Fix it by replacing with the correct Host Error Code.
---
nimble/host/src/ble_gattc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nimble/host/src/ble_gattc.c b/nimble/host/src/ble_gattc.c
index b3c8e04e1..0ff4ec28e 100644
--- a/nimble/host/src/ble_gattc.c
+++ b/nimble/host/src/ble_gattc.c
@@ -4444,7 +4444,7 @@ ble_gatts_notify_multiple_custom(uint16_t conn_handle,
conn = ble_hs_conn_find(conn_handle);
if (conn == NULL) {
- return ENOTCONN;
+ return BLE_HS_ENOTCONN;
}
/* Read missing values */
@@ -4527,7 +4527,7 @@ ble_gatts_notify_multiple(uint16_t conn_handle,
BLE_HS_LOG_DEBUG("conn_handle %d\n", conn_handle);
conn = ble_hs_conn_find(conn_handle);
if (conn == NULL) {
- return ENOTCONN;
+ return BLE_HS_ENOTCONN;
}
/** Skip sending to client that doesn't support this feature */