IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10992


Ignore:
Timestamp:
Jan 8, 2007, 4:22:27 PM (19 years ago)
Author:
Paul Price
Message:

Making sure DEFAULTS are read.

File:
1 edited

Legend:

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

    r10447 r10992  
    142142    fpa->hdu = psMemIncrRefCounter(hdu);
    143143    bool success = true;                // Success of reading concepts
    144     if (hdu->header && !pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, false, NULL)) {
     144    if (hdu->header && !pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_HEADER,
     145                                          false, NULL)) {
    145146        psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from header.\n");
    146147        success = false;
     
    168169    chip->hdu = psMemIncrRefCounter(hdu);
    169170    bool success = true;                // Success of reading concepts
    170     if (hdu->header && !pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER, true, false, NULL)) {
     171    if (hdu->header && !pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_HEADER,
     172                                           true, false, NULL)) {
    171173        psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from header.\n");
    172174        success = false;
     
    194196    cell->hdu = psMemIncrRefCounter(hdu);
    195197    bool success = true;                // Success of reading concepts
    196     if (hdu->header && !pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, true, NULL)) {
     198    if (hdu->header && !pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_HEADER,
     199                                           true, NULL)) {
    197200        psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from header.\n");
    198201        success = false;
     
    737740    psFree(contentsIter);
    738741
    739     if (header && !pmConceptsRead(fpa, chip, cell, PM_CONCEPT_SOURCE_PHU, NULL)) {
    740         psWarning("Unable to read concepts from PHU.\n");
    741     }
    742 
    743742    if (!pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_DEFAULTS, true, NULL)) {
    744743        psWarning("Unable to read concepts from defaults for FPA.  Attempting to "
    745744                  "proceed anyway.\n");
     745    }
     746
     747    if (header && !pmConceptsRead(fpa, chip, cell, PM_CONCEPT_SOURCE_PHU, NULL)) {
     748        psWarning("Unable to read concepts from PHU.\n");
    746749    }
    747750
Note: See TracChangeset for help on using the changeset viewer.