src/dcf.c
changeset 613 e9fce24923fc
parent 609 c59dce78bbad
child 668 ba53613e94e4
--- a/src/dcf.c	Wed Oct 28 13:46:53 2009 +0100
+++ b/src/dcf.c	Wed Oct 28 13:49:00 2009 +0100
@@ -118,7 +118,8 @@
 
 static void send_consise_dcf_loop(CO_Data* d,UNS8 nodeId)
 {
-  /* Loop on all DCF subindexes, corresponding to node ID until there is no request*/
+  if(nodeId > d->dcf_odentry->bSubCount) return;
+/* Loop on all DCF subindexes, corresponding to node ID until there is no request*/
   //while (nodeId < d->dcf_odentry->bSubCount){
   while (d->dcf_request>0){
   	if(d->dcf_odentry->pSubindex[nodeId].bAccessType & DCF_TO_SEND){