Hi everybody,
I used the sdo.c-functions for initial tests and have experienced wrong 
return values with the getReadResultNetworkDict function in sdo.c. This 
concerns line 2276-2282:

    if (d->transfers[line].state != SDO_FINISHED) {
            if((d->transfers[line].state == SDO_ABORTED_RCV) || 
(d->transfers[line].state == SDO_ABORTED_INTERNAL)) {
            *abortCode = d->transfers[line].abortCode;
            *size = 0;
        }
                return d->transfers[line].state;
    }

The error occurs if the value of d->transfers[line].state changes between 
the first and the second use. It should be easy to solve this problem by 
introducing a separate variable for d->transfers[line].state above the if 
statement.

The same counts for the function getWriteResultNetworkDict, line 2361-2362 
although the error occurs less frequent obviously.

Thanks for CANfestival!
Johannes
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Canfestival-devel mailing list
Canfestival-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/canfestival-devel

Reply via email to