FIXED: - bug while normal sdo transfer initialization (setting the byte count)
authorChristian Taedcke
Thu, 09 Sep 2010 16:01:13 +0200
changeset 651 2a36570aa68c
parent 650 58b07a7e695b
child 652 3b5789c34499
FIXED: - bug while normal sdo transfer initialization (setting the byte count)
src/sdo.c
--- a/src/sdo.c	Wed Nov 10 14:19:31 2010 +0100
+++ b/src/sdo.c	Thu Sep 09 16:01:13 2010 +0200
@@ -1458,7 +1458,7 @@
   else { /** Normal transfert */
     sdo.body.data[0] = (1 << 5) | 1;
     for (i = 0 ; i < 4 ; i++)
-      sdo.body.data[i+4] = (UNS8)((count << (i<<3))); /* i*8 */
+      sdo.body.data[i+4] = (UNS8)((count >> (i<<3))); /* i*8 */
   }
   sdo.body.data[1] = index & 0xFF;        /* LSB */
   sdo.body.data[2] = (index >> 8) & 0xFF; /* MSB */