Skip to content

Commit 6a14256

Browse files
committed
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 <[email protected]>
1 parent c3d9cc2 commit 6a14256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cansniffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ int sniftab_index(canid_t id)
844844
{
845845
int i;
846846

847-
for (i = 0; i <= idx; i++)
847+
for (i = 0; i < idx; i++)
848848
if (id == sniftab[i].current.can_id)
849849
return i;
850850

0 commit comments

Comments
 (0)