szymon-czapracki commented on code in PR #2013:
URL: https://github.com/apache/mynewt-nimble/pull/2013#discussion_r2102530931


##########
apps/btshell/src/main.c:
##########
@@ -1555,6 +1559,25 @@ btshell_gap_event(struct ble_gap_event *event, void *arg)
         return 0;
 #endif
 #endif
+    case BLE_GAP_EVENT_AUTHORIZE:
+        for (i = 0; i < PENDING_ATTR_MAX; i++) {
+            if (authorized_attrs[i].conn_handle ==
+            event->authorize.conn_handle && authorized_attrs[i].attr_handle ==
+            event->authorize.attr_handle) {

Review Comment:
   ```suggestion
   if (authorized_attrs[i].conn_handle == event->authorize.conn_handle &&
       authorized_attrs[i].attr_handle == event->authorize.attr_handle) {
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to