Changeset 15477 for trunk/psModules/src/camera/pmFPAFlags.c
- Timestamp:
- Nov 6, 2007, 1:15:12 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAFlags.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAFlags.c
r13190 r15477 136 136 137 137 for (int i = 0; i < fpa->chips->n; i++) { 138 pmChip *chip = fpa->chips->data[i];139 if (chip == NULL) continue;140 if (chip->data_exists) return true;138 pmChip *chip = fpa->chips->data[i]; 139 if (chip == NULL) continue; 140 if (chip->data_exists) return true; 141 141 } 142 142 return false; … … 170 170 171 171 if (view->chip == -1) { 172 bool exists = pmFPACheckDataStatus (fpa);173 return exists;172 bool exists = pmFPACheckDataStatus (fpa); 173 return exists; 174 174 } 175 175 176 176 if (view->chip >= fpa->chips->n) { 177 psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == %ld", view->chip, fpa->chips->n);178 return false;177 psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == %ld", view->chip, fpa->chips->n); 178 return false; 179 179 } 180 180 pmChip *chip = fpa->chips->data[view->chip]; 181 181 182 182 if (view->cell == -1) { 183 bool exists = pmChipCheckDataStatus (chip);184 return exists;183 bool exists = pmChipCheckDataStatus (chip); 184 return exists; 185 185 } 186 186 187 187 if (view->cell >= chip->cells->n) { 188 psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == %ld", view->cell, chip->cells->n);189 return false;188 psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == %ld", view->cell, chip->cells->n); 189 return false; 190 190 } 191 191 pmCell *cell = chip->cells->data[view->cell]; 192 192 193 193 if (view->readout == -1) { 194 bool exists = pmCellCheckDataStatus (cell);195 return exists;194 bool exists = pmCellCheckDataStatus (cell); 195 return exists; 196 196 } 197 197 198 198 if (view->readout >= cell->readouts->n) { 199 psError(PS_ERR_IO, true, "Requested readout == %d >= cell->readouds->n == %ld", view->readout, cell->readouts->n);200 return false;199 psError(PS_ERR_IO, true, "Requested readout == %d >= cell->readouds->n == %ld", view->readout, cell->readouts->n); 200 return false; 201 201 } 202 202 pmReadout *readout = cell->readouts->data[view->readout]; … … 290 290 psArray *chips = fpa->chips; // Component chips 291 291 if (chips == NULL) { 292 ps LogMsg(__func__, PS_LOG_WARN,"WARNING: fpa->chips == NULL\n");292 psWarning("WARNING: fpa->chips == NULL\n"); 293 293 return(0); 294 294 } 295 295 if ((chipNum >= chips->n) || (NULL == (pmChip *) chips->data[chipNum])) { 296 ps LogMsg(__func__, PS_LOG_WARN,"WARNING: the specified chip (%d) does not exist.\n", chipNum);296 psWarning("WARNING: the specified chip (%d) does not exist.\n", chipNum); 297 297 return(0); 298 298 }
Note:
See TracChangeset
for help on using the changeset viewer.
