Fixed (again) return of abortcode value in SDO's getReadResultNetworkDict
authoretisserant
Fri, 25 Jul 2008 09:34:08 +0200
changeset 503 8435a9ee54f8
parent 502 e06afbb9adcd
child 504 ad574af3628d
Fixed (again) return of abortcode value in SDO's getReadResultNetworkDict
src/sdo.c
--- a/src/sdo.c	Fri Jul 25 09:32:50 2008 +0200
+++ b/src/sdo.c	Fri Jul 25 09:34:08 2008 +0200
@@ -1547,6 +1547,7 @@
     MSG_ERR(0x1AF0, "SDO error : No line found for communication with node : ", nodeId); 
     return SDO_ABORTED_INTERNAL;
   }
+  * abortCode = d->transfers[line].abortCode;
   if (d->transfers[line].state != SDO_FINISHED)
     return d->transfers[line].state;
 
@@ -1564,7 +1565,6 @@
     ( (char *) data)[i] = d->transfers[line].data[i];
 # endif
   } 
-  * abortCode = d->transfers[line].abortCode;
   return SDO_FINISHED;
 }