]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
bug fixed function register_write_mem
authorhadaq <hadaq>
Sat, 2 Jul 2011 10:13:50 +0000 (10:13 +0000)
committerhadaq <hadaq>
Sat, 2 Jul 2011 10:13:50 +0000 (10:13 +0000)
libtrbnet/trbnet.c

index c67fbe2999671b2ca1f8a553591ebcea463205f1..92b6ccadef0813926bb34dd7eae9045f0a7694f1 100644 (file)
@@ -15,7 +15,7 @@
 #endif
 
 
-const char trbnet_version[] = "$Revision: 4.5 $";
+const char trbnet_version[] = "$Revision: 4.6 $";
 
 #include <stdlib.h>
 #include <signal.h>
@@ -1863,7 +1863,7 @@ int trb_register_write_mem(uint16_t trb_address,
       pexorDescriptor.reg_address = reg_address;
     }
     pexorDescriptor.arg0 = config;
-    pexorDescriptor.arg1 = (unsigned long)data;
+    pexorDescriptor.arg1 = (unsigned long)(data + ctr);
     pexorDescriptor.arg2 = len;
     pexorDescriptor.command = PEXOR_TRBNETCOM_REG_WRITE_MEM;
     pexorDescriptor.dma = pexor_dma;