cansniffer: fix snifftab CAN-ID query
Due to a wrong test to check for existing CAN-IDs in the snifftab it was not possible to have the CAN-ID '0' in the list and displayed. Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>pull/269/head
parent
c3d9cc2027
commit
6a14256323
|
|
@ -844,7 +844,7 @@ int sniftab_index(canid_t id)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i <= idx; i++)
|
for (i = 0; i < idx; i++)
|
||||||
if (id == sniftab[i].current.can_id)
|
if (id == sniftab[i].current.can_id)
|
||||||
return i;
|
return i;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue