author | etisserant |
Thu, 18 Sep 2008 23:47:53 +0200 | |
changeset 519 | ccaf1ba7444e |
parent 518 | 0dc0750327c0 |
child 520 | cc993e72b7e6 |
--- a/src/sdo.c Thu Sep 18 23:46:35 2008 +0200 +++ b/src/sdo.c Thu Sep 18 23:47:53 2008 +0200 @@ -1649,7 +1649,7 @@ /* Transfert is finished. Put the value in the data. */ /* use transfers[line].count as max size */ - if( (UNS8)d->transfers[line].count < *size ) + if( (UNS8)d->transfers[line].count > *size ) *size = (UNS8)d->transfers[line].count; for ( i = 0 ; i < *size ; i++) { # ifdef CANOPEN_BIG_ENDIAN