src/sdo.c
changeset 682 dce1e0af6604
parent 672 3bbc9aeba925
child 694 8dd1e58b3815
child 700 23df92154894
equal deleted inserted replaced
681:3c42b5df66b1 682:dce1e0af6604
  1015 					resetSDOline(d, line);
  1015 					resetSDOline(d, line);
  1016 				}
  1016 				}
  1017 				else {/* So, if it is not an expedited transfert */
  1017 				else {/* So, if it is not an expedited transfert */
  1018 					if (getSDOs(m->data[0])) {
  1018 					if (getSDOs(m->data[0])) {
  1019 						nbBytes = (m->data[4]) + ((UNS32)(m->data[5])<<8) + ((UNS32)(m->data[6])<<16) + ((UNS32)(m->data[7])<<24);
  1019 						nbBytes = (m->data[4]) + ((UNS32)(m->data[5])<<8) + ((UNS32)(m->data[6])<<16) + ((UNS32)(m->data[7])<<24);
  1020 						err = setSDOlineRestBytes(d, CliServNbr, nbBytes);
  1020 						err = setSDOlineRestBytes(d, line, nbBytes);
  1021 						if (err) {
  1021 						if (err) {
  1022 							failedSDO(d, CliServNbr, whoami, index, subIndex, SDOABT_GENERAL_ERROR);
  1022 							failedSDO(d, CliServNbr, whoami, index, subIndex, SDOABT_GENERAL_ERROR);
  1023 							return 0xFF;
  1023 							return 0xFF;
  1024 						}
  1024 						}
  1025 					}
  1025 					}