correction bogue pour BIG_ENDIAN
authordejoigny
Tue, 16 May 2006 17:22:15 +0200
changeset 8 eee2b0c89213
parent 7 126e37bcca0f
child 9 49f701f3dca7
correction bogue pour BIG_ENDIAN
src/objacces.c
--- a/src/objacces.c	Tue May 16 17:21:14 2006 +0200
+++ b/src/objacces.c	Tue May 16 17:22:15 2006 +0200
@@ -25,6 +25,7 @@
 
 #include "objacces.h"
 
+
 #ifdef DEBUG_WAR_CONSOLE_ON
 UNS8 accessDictionaryError(UNS16 index, UNS8 subIndex, 
 			     UNS8 sizeDataDict, UNS8 sizeDataGiven, UNS32 code)
@@ -98,8 +99,7 @@
   	(*pDataType == visible_string && *pExpectedSize > szData)) // We allow to fetch a shorter string than expected
   {
 	#ifdef CANOPEN_BIG_ENDIAN
-	      if(*pDataType > boolean && dataType < visible_string){
-	      {
+	      if(*pDataType > boolean && pDataType < visible_string){
 		// data must be transmited with low byte first
 		UNS8 i, j = 0;
 		for ( i = ptrTable->pSubindex[bSubindex].size ; i > 0 ; i--) {