Module: xenomai-3
Branch: master
Commit: 465302d146d293149f7646b409e6bee28e1af464
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=465302d146d293149f7646b409e6bee28e1af464

Author: Jorge Ramirez-Ortiz <j...@xenomai.org>
Date:   Thu Aug 21 15:22:05 2014 -0400

lib/analogy: fix a4l_sync_read wait call

---

 lib/analogy/sync.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/analogy/sync.c b/lib/analogy/sync.c
index 6dd49f9..fee5fc9 100644
--- a/lib/analogy/sync.c
+++ b/lib/analogy/sync.c
@@ -211,13 +211,13 @@ int a4l_sync_read(a4l_desc_t * dsc,
                        .type = A4L_INSN_READ,
                        .idx_subd = idx_subd,
                        .chan_desc = chan_desc,
-                       .data_size = 0,
+                       .data_size = nbyte,
                        .data = buf},
                {
                        .type = A4L_INSN_WAIT,
                        .idx_subd = idx_subd,
                        .chan_desc = chan_desc,
-                       .data_size = 1,
+                       .data_size = sizeof(unsigned int),
                        .data = NULL}
        };
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to