Changeset 27746
- Timestamp:
- Apr 23, 2010, 11:27:26 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAConstruct.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAConstruct.c
r22699 r27746 133 133 assert(hdu); 134 134 135 if (fpa->hdu) { 136 // Something's already here 137 if (fpa->hdu != hdu) { 138 psError(PS_ERR_IO, true, "Unable to add HDU since FPA already has one.\n"); 139 } 140 return false; 141 } 142 fpa->hdu = psMemIncrRefCounter(hdu); 135 if (!fpa->hdu) { 136 fpa->hdu = psMemIncrRefCounter(hdu); 137 } 143 138 pmFPASetFileStatus(fpa, true); 144 139 … … 155 150 156 151 if (chip->hdu) { 157 // Something's already here 158 if (chip->hdu != hdu) { 159 psError(PS_ERR_IO, true, "Unable to add HDU since chip already has one.\n"); 160 } 161 return false; 162 } 163 chip->hdu = psMemIncrRefCounter(hdu); 152 chip->hdu = psMemIncrRefCounter(hdu); 153 } 164 154 pmChipSetFileStatus(chip, true); 165 155 … … 176 166 177 167 if (cell->hdu) { 178 // Something's already here 179 if (cell->hdu != hdu) { 180 psError(PS_ERR_IO, true, "Unable to add HDU since cell already has one.\n"); 181 } 182 return false; 183 } 184 cell->hdu = psMemIncrRefCounter(hdu); 168 cell->hdu = psMemIncrRefCounter(hdu); 169 } 185 170 pmCellSetFileStatus(cell, true); 186 171
Note:
See TracChangeset
for help on using the changeset viewer.
