Now OD callback return val ahev influance on SDO transmission (if callback fall, SDO abord may be signaled)
authoretisserant
Mon, 31 Mar 2008 16:17:44 +0200
changeset 437 129bbe0504e4
parent 436 77796b3e3428
child 438 39ea9e1b8354
Now OD callback return val ahev influance on SDO transmission (if callback fall, SDO abord may be signaled)
src/objacces.c
--- a/src/objacces.c	Mon Mar 31 15:39:44 2008 +0200
+++ b/src/objacces.c	Mon Mar 31 16:17:44 2008 +0200
@@ -341,8 +341,12 @@
 
       /* Callbacks */
       if(Callback && Callback[bSubindex]){
-        (*Callback[bSubindex])(d, ptrTable, bSubindex);
-      }
+        errorCode = (Callback[bSubindex])(d, ptrTable, bSubindex);
+        if(errorCode != OD_SUCCESSFUL)
+        {
+            return errorCode;
+        }
+       }
 
       /* TODO : Store dans NVRAM */
       if (ptrTable->pSubindex[bSubindex].bAccessType & TO_BE_SAVE){