/* check if the usb-packet in buf contains an abort-transfer command. (if yes, all queued data will be dropped)  */
static int isAbortTrfCmnd(const unsigned char *buf)
/* check if the usb-packet in buf contains an abort-transfer command. (if yes, all queued data will be dropped)  */
static int isAbortTrfCmnd(const unsigned char *buf)
{
	if (0 == memcmp(buf, GARMIN_STOP_TRANSFER_REQ,
					sizeof(GARMIN_STOP_TRANSFER_REQ)) ||
	    0 == memcmp(buf, GARMIN_STOP_TRANSFER_REQ_V2,
					sizeof(GARMIN_STOP_TRANSFER_REQ_V2)))
		return 1;
	else
		return 0;
}