From 0926876978e80ae1e9c29d9f33a8f8ec0babaf5e Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 6 Jun 2010 23:03:04 +0200 Subject: [PATCH 1/1] follow USBTMC spec more closely, more to come... --- usbtmc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usbtmc.c b/usbtmc.c index 729f6db..622ea80 100644 --- a/usbtmc.c +++ b/usbtmc.c @@ -61,9 +61,9 @@ int usbtmc_sendscpi(usb_dev_handle *dev, char* cmd, buff[3]=0; int2chars(buff+4, cmdlen); buff[8]=1; - buff[9]=0x37; - buff[10]=0x39; - buff[11]=0x39; + buff[9]=0x00; + buff[10]=0x00; + buff[11]=0x00; //fprintf(stderr,"Writing header len=%d\n", cmdlen); //printb(buff,12); r=usb_bulk_write(dev, 1, (char*)buff, 12, USB_TIMEOUT); @@ -77,7 +77,7 @@ int usbtmc_sendscpi(usb_dev_handle *dev, char* cmd, seq++; buff[1]=seq; buff[2]=~seq; //nseq int2chars(buff+4,0x40); - buff[8]=1; + buff[8]=0; buff[9]=0xA; buff[10]=0; buff[11]=0; -- 2.39.5