Changeset 12680 for trunk/psModules/src/concepts/pmConcepts.c
- Timestamp:
- Mar 29, 2007, 11:59:42 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConcepts.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConcepts.c
r12663 r12680 204 204 } 205 205 206 pmHDU *hdu = pmHDUGetLowest(fpa, chip, cell); // Any HDU, required for the format 207 if (!hdu) { 206 // At least one HDU is required for the reading functions 207 pmHDU *hduLow = pmHDUGetLowest(fpa, chip, cell); // Lowest HDU. 208 if (!hduLow) { 208 209 // Can't do anything --- don't record any success, but don't return an error either 209 210 return true; 210 211 } 212 pmHDU *hduHigh = pmHDUGetHighest(fpa, chip, cell); // Highest HDU 211 213 212 214 bool success = true; // Success in reading concepts? … … 229 231 } 230 232 231 if (source & PM_CONCEPT_SOURCE_PHU && !(*read & PM_CONCEPT_SOURCE_PHU) ) {233 if (source & PM_CONCEPT_SOURCE_PHU && !(*read & PM_CONCEPT_SOURCE_PHU) && hduHigh->header) { 232 234 if (p_pmConceptsReadFromHeader(target, *specs, fpa, chip, cell)) { 233 235 *read |= PM_CONCEPT_SOURCE_PHU; … … 238 240 } 239 241 240 if (source & PM_CONCEPT_SOURCE_HEADER && !(*read & PM_CONCEPT_SOURCE_HEADER)) { 242 // If there are multiple HDUs, then it may be that one of them hasn't been read yet (hdu->header not set) 243 if (source & PM_CONCEPT_SOURCE_HEADER && !(*read & PM_CONCEPT_SOURCE_HEADER) && 244 hduLow != hduHigh && hduLow->header) { 241 245 if (p_pmConceptsReadFromHeader(target, *specs, fpa, chip, cell)) { 242 246 *read |= PM_CONCEPT_SOURCE_HEADER;
Note:
See TracChangeset
for help on using the changeset viewer.
