author | etisserant |
Mon, 16 Mar 2009 23:04:39 +0100 | |
changeset 538 | 49f6d796b692 |
parent 537 | 9abbda25a18b |
child 539 | 187058b4a4b8 |
--- a/src/sdo.c Mon Mar 16 08:30:07 2009 +0100 +++ b/src/sdo.c Mon Mar 16 23:04:39 2009 +0100 @@ -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