From 013a75d227c31d211010f585d9f1ce11e6f33760 Mon Sep 17 00:00:00 2001 From: hadaq Date: Sat, 2 Jul 2011 10:13:50 +0000 Subject: [PATCH] bug fixed function register_write_mem --- libtrbnet/trbnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.0