From: etisserant Date: Thu, 18 Sep 2008 21:47:53 +0000 (+0000) Subject: Fixed typo in getReadResultNetworkDict X-Git-Url: https://rtime.felk.cvut.cz/gitweb/CanFestival-3.git/commitdiff_plain/a164cec33d96475d78af37415684317909a04ce1?hp=63ab42cc6c034f56c52354d41c962953662e3d6b Fixed typo in getReadResultNetworkDict --- diff --git a/src/sdo.c b/src/sdo.c index 8edf5be..4e26652 100644 --- a/src/sdo.c +++ b/src/sdo.c @@ -1649,7 +1649,7 @@ UNS8 getReadResultNetworkDict (CO_Data* d, UNS8 nodeId, void* data, UNS8 *size, /* 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