nimble/netif_conn: fix _conn_get_itvl_ms()

This commit is contained in:
Hauke Petersen 2021-09-24 17:28:09 +02:00
parent 025892a0cc
commit 625d5544ad

View File

@ -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;
}