# HG changeset patch
# User dejoigny
# Date 1147792935 -7200
# Node ID eee2b0c892133b5f9eb8d1856fc59f6cd643f25c
# Parent  126e37bcca0ffd7e58337221378378ba942753f1
correction bogue pour BIG_ENDIAN

diff -r 126e37bcca0f -r eee2b0c89213 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--) {