Module: xenomai-abe
Branch: analogy
Commit: 4ee6db033a7f5b53466e48fd885429094e3e5c3e
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=4ee6db033a7f5b53466e48fd885429094e3e5c3e

Author: Breeje, R. (Remco) den <remco.denbre...@tno.nl>
Date:   Wed Oct 28 00:56:17 2009 +0100

In cmd_read, fix received bytes storing

---

 src/utils/analogy/cmd_read.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/utils/analogy/cmd_read.c b/src/utils/analogy/cmd_read.c
index 6671754..c71c339 100644
--- a/src/utils/analogy/cmd_read.c
+++ b/src/utils/analogy/cmd_read.c
@@ -322,6 +322,9 @@ int main(int argc, char *argv[])
                                        printf("\n");
                        }
 
+                       /* Update the counter */
+                       cnt += ret;
+
                        if (real_time != 0) {
                                ret = rt_task_set_mode(0, T_PRIMARY, NULL);
                                if (ret < 0) {
@@ -331,7 +334,6 @@ int main(int argc, char *argv[])
                                        goto out_main;
                                }
                        }
-                       cnt += ret;
                }
 
        } else {


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to