IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 10, 2006, 2:53:37 PM (20 years ago)
Author:
Paul Price
Message:

Check that the r/o can be read (by looking for the HDU) before attempting to read it.

File:
1 edited

Legend:

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

    r7810 r7859  
    174174    // Get the HDU and read the header
    175175    pmCell *cell = readout->parent;     // The parent cell
     176
     177    pmHDU *hdu = pmHDUFromCell(cell);   // The HDU
     178    if (!hdu || hdu->blankPHU) {
     179        return false;
     180    }
     181
    176182    if (!pmCellReadHeader(cell, fits)) {
    177183        psError(PS_ERR_IO, false, "Unable to read header for cell!\n");
    178         return false;
    179     }
    180 
    181     pmHDU *hdu = pmHDUFromCell(cell);   // The HDU
    182     if (!hdu) {
    183184        return false;
    184185    }
Note: See TracChangeset for help on using the changeset viewer.