diff --git a/j2534/j2534.c b/j2534/j2534.c index 361e5d1..af5f3ba 100644 --- a/j2534/j2534.c +++ b/j2534/j2534.c @@ -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)