IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2009, 11:45:11 AM (17 years ago)
Author:
Paul Price
Message:

Noticed that the TIMESYS wouldn't necessarily be updated just because we alter it in the format process for a TIME. To remedy this, force it to be written after updating. Reworked the concepts writing so that conceptsWrite() provides the iteration, while the other functions write a single entry only. This allows a new function, pmConceptWriteSingle(), which is used to update the TIMESYS.

File:
1 edited

Legend:

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

    r22747 r23428  
    172172
    173173    if (writeBlank || writeImage) {
    174         pmConceptSource source = PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS |
    175                                  PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE;
    176         if (!pmConceptsWriteCell(cell, source, true, config)) {
     174        if (!pmConceptsWriteCell(cell, true, config)) {
    177175            psError(PS_ERR_IO, false, "Unable to write concepts for cell.");
    178176            return false;
     
    225223
    226224        if (writeBlank || writeImage) {
    227             pmConceptSource source = PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS |
    228                                      PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE;
    229             if (!pmConceptsWriteChip(chip, source, true, true, config)) {
     225            if (!pmConceptsWriteChip(chip, true, true, config)) {
    230226                psError(PS_ERR_IO, false, "Unable to write concepts for chip.\n");
    231227                return false;
     
    294290
    295291        if (writeBlank || writeImage) {
    296             pmConceptSource source = PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS |
    297                                      PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE;
    298             if (!pmConceptsWriteFPA(fpa, source, true, config)) {
     292            if (!pmConceptsWriteFPA(fpa, true, config)) {
    299293                psError(PS_ERR_IO, false, "Unable to write concepts for FPA.\n");
    300294                return false;
Note: See TracChangeset for help on using the changeset viewer.