IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 8, 2006, 1:54:57 AM (20 years ago)
Author:
eugene
Message:

moved CHIP_SELECTIONS to recipe, fixed leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotParseCamera.c

    r10437 r10554  
    7474
    7575    // Chip selection: turn on only the chips specified (pass status to suppress missing-key log msg)
    76     // XXX why not put this in the recipe?
    77     char *chipLine = psMetadataLookupStr(&status, config->arguments, "CHIP_SELECTIONS");
     76    char *chipLine = psMetadataLookupStr(&status, recipe, "CHIP_SELECTIONS");
    7877    psArray *chips = psStringSplitArray (chipLine, ",", false);
    7978    if (chips->n > 0) {
     79        // select on the basis of extname?
    8080        pmFPASelectChip (input->fpa, -1, true); // deselect all chips
    8181        for (int i = 0; i < chips->n; i++) {
    8282            int chipNum = atoi(chips->data[i]);
     83            fprintf (stderr, "select chip %d\n", chipNum);
    8384            if (! pmFPASelectChip(input->fpa, chipNum, false)) {
    8485                psError(PS_ERR_IO, false, "Chip number %d doesn't exist in camera.\n", chipNum);
Note: See TracChangeset for help on using the changeset viewer.