mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-20 14:29:55 +02:00
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>
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user