From: hadaq Date: Sat, 2 Jul 2011 10:13:50 +0000 (+0000) Subject: bug fixed function register_write_mem X-Git-Tag: v6.0~142 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=013a75d227c31d211010f585d9f1ce11e6f33760;p=trbnettools.git bug fixed function register_write_mem --- diff --git a/libtrbnet/trbnet.c b/libtrbnet/trbnet.c index c67fbe2..92b6cca 100644 --- a/libtrbnet/trbnet.c +++ b/libtrbnet/trbnet.c @@ -15,7 +15,7 @@ #endif -const char trbnet_version[] = "$Revision: 4.5 $"; +const char trbnet_version[] = "$Revision: 4.6 $"; #include #include @@ -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;