SDO transfer:
authorChristian Taedcke <hacking@taedcke.com>
Thu, 22 Dec 2011 16:03:39 +0100
changeset 682 dce1e0af6604
parent 681 3c42b5df66b1
child 683 a3ff0e3e9829
SDO transfer:
FIXED: - Wrong SDO line could get changed due to a wrong parameter to setSDOlineRestBytes().
src/sdo.c
--- a/src/sdo.c	Mon Aug 08 11:57:43 2011 +0000
+++ b/src/sdo.c	Thu Dec 22 16:03:39 2011 +0100
@@ -1017,7 +1017,7 @@
 				else {/* So, if it is not an expedited transfert */
 					if (getSDOs(m->data[0])) {
 						nbBytes = (m->data[4]) + ((UNS32)(m->data[5])<<8) + ((UNS32)(m->data[6])<<16) + ((UNS32)(m->data[7])<<24);
-						err = setSDOlineRestBytes(d, CliServNbr, nbBytes);
+						err = setSDOlineRestBytes(d, line, nbBytes);
 						if (err) {
 							failedSDO(d, CliServNbr, whoami, index, subIndex, SDOABT_GENERAL_ERROR);
 							return 0xFF;