Changeset 7729 for trunk/psModules/src/camera/pmFPAWrite.c
- Timestamp:
- Jun 28, 2006, 9:23:54 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAWrite.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAWrite.c
r7717 r7729 107 107 // We only write out a blank PHU if it's specifically requested. 108 108 bool writeBlank = blank && hdu->blankPHU && !hdu->images; // Write a blank PHU? 109 bool writeImage = ! hdu->blankPHU && hdu->images; // Write an image?109 bool writeImage = !blank && !hdu->blankPHU && hdu->images; // Write an image? 110 110 111 111 if (writeBlank || writeImage) { … … 151 151 // We only write out a blank PHU if it's specifically requested. 152 152 bool writeBlank = blank && hdu->blankPHU && !hdu->images; // Write a blank HDU? 153 bool writeImage = ! hdu->blankPHU && hdu->images; // Write an image?153 bool writeImage = !blank && !hdu->blankPHU && hdu->images; // Write an image? 154 154 155 155 if (writeBlank || writeImage) { … … 168 168 169 169 // Recurse to lower level if specifically requested. 170 // XXX recursion implies blank == false (must be called on correct level?) 170 171 if (recurse) { 171 172 psArray *cells = chip->cells; // Array of cells 172 173 for (int i = 0; i < cells->n; i++) { 173 174 pmCell *cell = cells->data[i]; // The cell of interest 174 if (!pmCellWrite(cell, fits, db, blank)) {175 if (!pmCellWrite(cell, fits, db, false)) { 175 176 psError(PS_ERR_IO, false, "Unable to write Chip.\n"); 176 177 return false; … … 211 212 // We only write out a blank PHU if it's specifically requested. 212 213 bool writeBlank = blank && hdu->blankPHU && !hdu->images; // Write a blank PHU? 213 bool writeImage = ! hdu->blankPHU && hdu->images; // Write an image?214 bool writeImage = !blank && !hdu->blankPHU && hdu->images; // Write an image? 214 215 215 216 if (writeBlank || writeImage) { … … 232 233 for (int i = 0; i < chips->n; i++) { 233 234 pmChip *chip = chips->data[i]; // The chip of interest 234 if (!pmChipWrite(chip, fits, db, blank, true)) {235 if (!pmChipWrite(chip, fits, db, false, true)) { 235 236 psError(PS_ERR_IO, false, "Unable to write FPA.\n"); 236 237 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
