Added SDO network dictionnary access callback when aborded.
authoretisserant
Tue, 17 Apr 2007 10:50:28 +0200
changeset 163 212a9ea3b968
parent 162 8331c670a3de
child 164 a79021dbc302
Added SDO network dictionnary access callback when aborded.
src/sdo.c
--- a/src/sdo.c	Tue Apr 17 10:48:17 2007 +0200
+++ b/src/sdo.c	Tue Apr 17 10:50:28 2007 +0200
@@ -1046,6 +1046,7 @@
 	StopSDO_TIMER(line)
 	d->transfers[line].state = SDO_ABORTED_RCV;
 	MSG_WAR(0x3AB0, "SD0. Received SDO abort. Line state ABORTED. Code : ", abortCode);
+	if(d->transfers[line].Callback) (*d->transfers[line].Callback)(d,nodeId);
       }
       else
 	MSG_WAR(0x3AB1, "SD0. Received SDO abort. No line found. Code : ", abortCode);