Skip to content

Commit 0c21112

Browse files
fix DM_CONN_ID_NONE loop condition
1 parent d115e73 commit 0c21112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ ble_error_t GattServer::areUpdatesEnabled(
701701
) {
702702
for (size_t idx = 0; idx < cccd_cnt; idx++) {
703703
if (characteristic.getValueHandle() == cccd_handles[idx]) {
704-
for (dmConnId_t conn_id = DM_CONN_MAX; conn_id > DM_CONN_MAX; --conn_id) {
704+
for (dmConnId_t conn_id = DM_CONN_MAX; conn_id > DM_CONN_ID_NONE; --conn_id) {
705705
if (DmConnInUse(conn_id) == true) {
706706
uint16_t cccd_value = AttsCccGet(conn_id, idx);
707707
if (cccd_value & (ATT_CLIENT_CFG_NOTIFY | ATT_CLIENT_CFG_INDICATE)) {

0 commit comments

Comments
 (0)