Skip to content

Commit

Permalink
Merge pull request #16890 from haukepetersen/fix_nimbleconn_getitvl
Browse files Browse the repository at this point in the history
nimble/netif_conn: fix _conn_get_itvl_ms()
  • Loading branch information
haukepetersen committed Sep 24, 2021
2 parents 025892a + 625d554 commit e53d6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/nimble/netif/nimble_netif_conn.c
Expand Up @@ -224,7 +224,7 @@ unsigned nimble_netif_conn_count(uint16_t filter)

uint16_t nimble_netif_conn_get_itvl_ms(int handle)
{
if ((handle == 0) || (handle >= CONN_CNT)) {
if ((handle < 0) || (handle >= CONN_CNT)) {
return 0;
}

Expand Down

0 comments on commit e53d6c0

Please sign in to comment.