IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2008, 2:14:08 PM (18 years ago)
Author:
Paul Price
Message:

Was hacking the header rather than the recipe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigMask.c

    r18598 r18604  
    7373    }
    7474
    75     int nMask = psMetadataLookupS32 (&status, header, "MSKNUM");
     75    int nMask = psMetadataLookupS32(&status, header, "MSKNUM");
    7676    if (!status) {
    7777        psError(PS_ERR_UNKNOWN, true, "Unable to find MSKNUM in header.");
     
    8181    for (int i = 0; i < nMask; i++) {
    8282
    83         snprintf (namekey,  64, "MSKNAM%02d", i);
    84         snprintf (valuekey, 64, "MSKVAL%02d", i);
    85 
    86         char *name = psMetadataLookupStr (&status, header, namekey);
    87         psU8 bit = psMetadataLookupU8 (&status, header, valuekey);
     83        snprintf(namekey,  64, "MSKNAM%02d", i);
     84        snprintf(valuekey, 64, "MSKVAL%02d", i);
     85
     86        char *name = psMetadataLookupStr(&status, header, namekey);
     87        psU8 bit = psMetadataLookupU8(&status, header, valuekey);
    8888
    8989        // XXX validate that bit is a 2^n value?
    9090
    91         psMetadataItem *item = psMetadataLookup (header, name);
     91        psMetadataItem *item = psMetadataLookup(recipe, name);
    9292        if (!item) {
    9393            psWarning("mask recipe entry %s not in recipe\n", name);
Note: See TracChangeset for help on using the changeset viewer.