IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 6, 2008, 2:09:40 PM (18 years ago)
Author:
Paul Price
Message:

Fixing logic error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPACopy.c

    r16859 r16861  
    120120        psFree(binning);
    121121        return false;
    122     }
    123     if (xParityTarget != xParitySource) {
    124         xFlip = true;
    125122    } else {
    126123        // Use the source parity
    127124        COPY_CONCEPT(target->concepts, source->concepts, "CELL.XPARITY", S32);
     125        xParityTarget = xParitySource;
     126    }
     127    if (xParityTarget != xParitySource) {
     128        xFlip = true;
    128129    }
    129130
     
    132133    assert(mdokS && mdokT);
    133134    if (abs(yParitySource) != 1) {
    134         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "CELL.YPARITY is not set for both source (%d)",
     135        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "CELL.YPARITY is not set for source (%d)",
    135136                yParitySource);
    136137        psFree(binning);
    137138        return false;
    138     }
    139     if (yParityTarget != yParitySource) {
    140         yFlip = true;
    141139    } else {
    142140        // Use the source parity
    143141        COPY_CONCEPT(target->concepts, source->concepts, "CELL.YPARITY", S32);
     142        yParityTarget = yParitySource;
     143    }
     144    if (yParityTarget != yParitySource) {
     145        yFlip = true;
    144146    }
    145147    psTrace("psModules.camera", 3, "xFlip: %d; yFlip: %d\n", xFlip, yFlip);
Note: See TracChangeset for help on using the changeset viewer.