src/dcf.c
changeset 587 c175351a6994
parent 478 4306e851d95c
child 609 c59dce78bbad
--- a/src/dcf.c	Wed Sep 16 15:13:51 2009 +0200
+++ b/src/dcf.c	Wed Sep 16 15:15:28 2009 +0200
@@ -87,7 +87,7 @@
 */
 UNS8 send_consise_dcf(CO_Data* d,UNS8 nodeId)
 {
-  UNS8 szData;
+  UNS32 szData;
   /* Fetch DCF OD entry, if not already done */
   if(!d->dcf_odentry)
   {
@@ -124,7 +124,7 @@
   	if(d->dcf_odentry->pSubindex[nodeId].bAccessType & DCF_TO_SEND){   	 
         UNS8* dcfend;
   		UNS32 nb_entries;
-  		UNS8 szData = d->dcf_odentry->pSubindex[nodeId].size;
+  		UNS32 szData = d->dcf_odentry->pSubindex[nodeId].size;
       	 
    		{
 	   		UNS8* dcf = *((UNS8**)d->dcf_odentry->pSubindex[nodeId].pObject);
@@ -171,7 +171,7 @@
                                 nodeId, /* UNS8 nodeId*/
                                 target_Index, /* UNS16 index*/
                                 target_Subindex, /* UNS8 subindex*/
-                                target_Size, /* UNS8 count*/
+                                (UNS8)target_Size, /* UNS8 count*/
                                 0, /* UNS8 dataType*/
                                 d->dcf_cursor,/* void *data*/
                                 CheckSDOAndContinue,/* SDOCallback_t