Changeset 11242 for trunk/psModules/src/camera/pmFPAfileDefine.c
- Timestamp:
- Jan 22, 2007, 5:18:21 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAfileDefine.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfileDefine.c
r11226 r11242 267 267 psArray *infiles = psMetadataLookupPtr(&status, config->arguments, argname); 268 268 if (!status) { 269 // psTrace("psModules.camera", 5, "Failed to find %s in argument list", argname);270 269 psError(PS_ERR_UNEXPECTED_NULL, false, "Failed to find %s in argument list", argname); 271 270 return NULL; … … 326 325 return NULL; 327 326 } 327 file->format = format; 328 328 329 329 // adjust the rules to identify these files in the file->names data … … 373 373 return NULL; 374 374 } 375 if (!pmConfigValidateCameraFormat (format, phu)) { 375 bool valid = false; 376 if (!pmConfigValidateCameraFormat (&valid, format, phu)) { 377 psError (PS_ERR_UNKNOWN, false, "Error in config scripts\n"); 378 psFree (realName); 379 psFitsClose (fits); 380 return NULL; 381 } 382 if (!valid) { 376 383 psError(PS_ERR_IO, false, "file %s is not from the required camera", realName); 377 384 psFree (realName); … … 404 411 } 405 412 psFree (fpa); 406 407 file->format = format;408 413 if (found) 409 414 *found = true; … … 492 497 return NULL; 493 498 } 494 if (!pmConfigValidateCameraFormat (input->format, phu)) { 499 bool valid = false; 500 if (!pmConfigValidateCameraFormat (&valid, input->format, phu)) { 501 psError (PS_ERR_UNKNOWN, false, "Error in config scripts\n"); 502 psFree (realName); 503 psFitsClose (fits); 504 return NULL; 505 } 506 if (!valid) { 495 507 psError(PS_ERR_IO, false, "specified data file %s does not match format of supplied INPUT\n", realName); 496 508 psFree (realName);
Note:
See TracChangeset
for help on using the changeset viewer.
