nimble/netif_conn: fix _conn_get_itvl_ms()
This commit is contained in:
parent
025892a0cc
commit
625d5544ad
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user