Changeset 18465 for trunk/FACT++


Ignore:
Timestamp:
04/21/16 09:31:16 (9 years ago)
Author:
lyard
Message:
Fix wrong STATE values written to FITS
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r18345 r18465  
    15131513        msg << sub.server << serviceName;
    15141514
     1515
     1516        //in case of non messages message (i.e. binary data written to logs)
     1517        //we override the quality before writing to .log, otherwise it will wrongly decorate the log entry
     1518        //because fQuality is really the system state in some cases.
     1519        //so save a backup of the original value before writing to fits
     1520        int backup_quality = fQuality;
     1521
    15151522        //fix the quality of non message "messages"
    15161523        if (!isMessage)
     
    15341541                return;
    15351542        }
     1543
     1544        //in case we have overriden the fQuality before writing to log, restore the original value before writing to FITS
     1545        if (!isMessage)
     1546            fQuality = backup_quality;
    15361547
    15371548//        sub.lastReceivedEvent = cTime;
Note: See TracChangeset for help on using the changeset viewer.