Ignore:
Timestamp:
05/09/09 13:48:12 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/tcpip/MCeCoCom.cc

    r9435 r9439  
    104104    cout << "Zd/Az: " << zd << "/" << az << "  ";
    105105    cout << "Ra/Dec: " << ra/15 << "h/" << dec << "  ";
    106     cout << "SolRad: " << solar << "W/m²" << endl;
     106    //cout << "SolRad: " << solar << "W/m²";
     107    cout << endl;
    107108
    108109    fComStat = kCmdReceived;
     
    122123        return InterpreteReport(str);
    123124
    124     const bool rc = InterpreteCmd(cmd, str.Strip(TString::kBoth));
    125     fComStat = rc ? kCmdReceived : kComProblem;
    126     return rc;
     125    return InterpreteCmd(cmd, str.Strip(TString::kBoth));
    127126}
    128127
    129128bool MCeCoCom::SendRep(const char *cmd, const char *str, bool force)
    130129{
    131     MTime t;
    132     t.Now();
    133130
    134131    UShort_t y1, y2, ms1, ms2;
    135132    Byte_t mon1, mon2, d1, d2, h1, h2, m1, m2, s1, s2;
    136133
     134    fT.GetDate(y2, mon2, d2);
     135    fT.GetTime(h2, m2, s2, ms2);
     136
     137    MTime t(-1);
    137138    t.GetDate(y1, mon1, d1);
    138139    t.GetTime(h1, m1, s1, ms1);
    139140
    140     fT.GetDate(y2, mon2, d2);
    141     fT.GetTime(h2, m2, s2, ms2);
     141    if (t-fT>20)
     142        fComStat = kComProblem;
    142143
    143144    const TString msg =
     
    152153    // Send report to CC
    153154    const bool rc = Send(msg.Data(), msg.Length());
    154     fComStat = rc ? kNoCmdReceived : kComProblem;
    155155
    156156    // Write report to stream
Note: See TracChangeset for help on using the changeset viewer.