Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions j2534/j2534.c
Original file line number Diff line number Diff line change
Expand Up @@ -1797,6 +1797,18 @@ int32_t PassThruIoctl(const unsigned long ChannelID, const unsigned long ioctlID

r = LIBUSB_SUCCESS;
}
if (ioctlID == J2534_CLEAR_MSG_FILTERS)
{
// TODO: this would be good to have
if (write_log)
writelog("[CLEAR_MSG_FILTERS]\n");
// atk5 -1 4
// unsure what the 5 is - protocol ID? channel ID?
// 4 is command sequence number - seems to be optional
snprintf(data, MAX_LEN, "atk%lu -1\r\n", ChannelID);
// setting NULL for expected reply accepts an "aro" which is the norm
r = usb_send_expect(data, strlen(data), MAX_LEN, 2000, NULL);
}

EXIT_IOCTL:
if (write_log)
Expand Down