rymanluk commented on a change in pull request #283: Adding Periodic 
Advertising Feature
URL: https://github.com/apache/mynewt-nimble/pull/283#discussion_r250689134
 
 

 ##########
 File path: nimble/host/src/ble_gap.c
 ##########
 @@ -1355,7 +1377,7 @@ ble_gap_rx_per_adv_sync_estab(struct 
hci_le_subev_per_adv_sync_estab *evt)
        event.per_adv_sync_estab.per_adv_ival           = evt->per_adv_ival;
        event.per_adv_sync_estab.adv_clk_accuracy       = evt->adv_clk_accuracy;
 
-       ble_gap_master.pending_create_sync--;
+       ble_gap_master.pending_create_sync = 0;
 
 Review comment:
   `pending_create_sync` is `uint32_t`. Can be reduced.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to