Changeset 7312 for trunk/psModules/src/camera/pmFPAConstruct.c
- Timestamp:
- Jun 2, 2006, 3:07:40 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAConstruct.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAConstruct.c
r7311 r7312 137 137 } 138 138 fpa->hdu = psMemIncrRefCounter(hdu); 139 if (hdu->header) { 140 if (!pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, NULL)) { 141 psError(PS_ERR_UNKNOWN, false, "Failed to read concepts for FPA"); 142 return false; 143 } 139 bool success = true; // Success of reading concepts 140 if (hdu->header && !pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, NULL)) { 141 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from header.\n"); 142 success = false; 144 143 } 145 144 pmFPASetFileStatus(fpa, true); 146 145 147 return true;146 return success; 148 147 } 149 148 … … 164 163 } 165 164 chip->hdu = psMemIncrRefCounter(hdu); 166 if (hdu->header) { 167 pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER, true, NULL); 165 bool success = true; // Success of reading concepts 166 if (hdu->header && !pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER, true, NULL)) { 167 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from header.\n"); 168 success = false; 168 169 } 169 170 pmChipSetFileStatus(chip, true); 170 171 171 return true;172 return success; 172 173 } 173 174 … … 188 189 } 189 190 cell->hdu = psMemIncrRefCounter(hdu); 190 if (hdu->header) { 191 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, true, NULL); 191 bool success = true; // Success of reading concepts 192 if (hdu->header && !pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, true, NULL)) { 193 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from header.\n"); 194 success = false; 192 195 } 193 196 pmCellSetFileStatus(cell, true); 194 197 195 return true;198 return success; 196 199 } 197 200 … … 339 342 } 340 343 newCell->config = psMemIncrRefCounter(cellData); 341 if (!pmConceptsReadCell(newCell, PM_CONCEPT_SOURCE_CAMERA | PM_CONCEPT_SOURCE_DEFAULTS, false, NULL)) { 342 psError(PS_ERR_IO, false, "Reading concepts for cell %d", numCells); 344 if (!pmConceptsReadCell(newCell, PM_CONCEPT_SOURCE_CAMERA | PM_CONCEPT_SOURCE_DEFAULTS, 345 false, NULL)) { 346 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from camera and defaults for chip %s, " 347 "cell %s, type %s. Attempting to proceed anyway...\n", chipName, cellName, cellType); 343 348 return -1; 344 349 } … … 735 740 psFree(contentsIter); 736 741 737 pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_DEFAULTS, NULL); 742 if (!pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_DEFAULTS, NULL)) { 743 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts from defaults for FPA %s. Attempting to " 744 "proceed anyway.\n", currentFPAname); 745 } 738 746 739 747 return view;
Note:
See TracChangeset
for help on using the changeset viewer.
