On 29 January 2012 04:50, Jon Elson <[email protected]> wrote:

> If you request both extradac and extradout it gives a specific message for
> that from line 637.

Is the problem that line 642 is an 'else if', so isn't run if any of
the other 'else if's are true?

ie, else if ( need_extra_dac) is true, so the execution of the 'else
if's stops.

I think you need:

                if ( need_extra_dac && need_extra_dout ) {
                    rtapi_print_msg(RTAPI_MSG_ERR,
                        "PPMC: ERROR: Can't have extra DAC and DOUT on same 
slot\n");
                } else if ( need_extra_dac ) {
                    rv1 += export_extra_dac(slot, bus);
                } else if ( need_extra_dout ) {
                    rv1 += export_extra_dout(slot, bus);
                }
                if ( need_timestamp ) {
                    rv1 += export_timestamp(slot, bus);
                }       


-- 
atp
The idea that there is no such thing as objective truth is, quite simply, wrong.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to