Changeset 10992 for trunk/psModules/src/camera/pmFPAConstruct.c
- Timestamp:
- Jan 8, 2007, 4:22:27 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAConstruct.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAConstruct.c
r10447 r10992 142 142 fpa->hdu = psMemIncrRefCounter(hdu); 143 143 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)) { 145 146 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from header.\n"); 146 147 success = false; … … 168 169 chip->hdu = psMemIncrRefCounter(hdu); 169 170 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)) { 171 173 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from header.\n"); 172 174 success = false; … … 194 196 cell->hdu = psMemIncrRefCounter(hdu); 195 197 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)) { 197 200 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from header.\n"); 198 201 success = false; … … 737 740 psFree(contentsIter); 738 741 739 if (header && !pmConceptsRead(fpa, chip, cell, PM_CONCEPT_SOURCE_PHU, NULL)) {740 psWarning("Unable to read concepts from PHU.\n");741 }742 743 742 if (!pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_DEFAULTS, true, NULL)) { 744 743 psWarning("Unable to read concepts from defaults for FPA. Attempting to " 745 744 "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"); 746 749 } 747 750
Note:
See TracChangeset
for help on using the changeset viewer.
