IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2008, 12:39:28 PM (18 years ago)
Author:
eugene
Message:

move test for mask to after file is created

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r18554 r18567  
    492492    }
    493493
    494     if (file->type == PM_FPA_FILE_MASK) {
    495         if (!pmConfigMaskReadHeader (config, phu)) {
    496             psError(PS_ERR_IO, false, "error in mask bits");
    497             return NULL;
    498         }
    499     }
    500 
    501494    // build the template fpa, set up the basic view
    502495    // XXX do we want this to be the baseCamera name or the metaCamera name?
     
    538531        psFree(fpa);
    539532        return NULL;
     533    }
     534
     535    if (file->type == PM_FPA_FILE_MASK) {
     536        if (!pmConfigMaskReadHeader (config, phu)) {
     537            psError(PS_ERR_IO, false, "error in mask bits");
     538            return NULL;
     539        }
    540540    }
    541541
     
    824824    }
    825825
    826     if (file->type == PM_FPA_FILE_MASK) {
    827         if (!pmConfigMaskReadHeader (config, phu)) {
    828             psError(PS_ERR_IO, false, "error in mask bits");
    829             return NULL;
    830         }
    831     }
    832 
    833826    // build the template fpa, set up the basic view
    834827    fpa = pmFPAConstruct (camera, config->cameraName);
     
    867860        psFree(fpa);
    868861        return NULL;
     862    }
     863
     864    if (file->type == PM_FPA_FILE_MASK) {
     865        if (!pmConfigMaskReadHeader (config, phu)) {
     866            psError(PS_ERR_IO, false, "error in mask bits");
     867            return NULL;
     868        }
    869869    }
    870870
Note: See TracChangeset for help on using the changeset viewer.