Changeset 10926


Ignore:
Timestamp:
06/07/11 22:21:09 (14 years ago)
Author:
tbretz
Message:
Fixed setting run number.
File:
1 edited

Legend:

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

    r10876 r10926  
    231231
    232232            case kCmdWriteRunNumberMSW:
    233                 fRunNumber &= 0xffff;
    234                 fRunNumber |= fBufCommand[0]<<16;
    235                 cout << "-> RunNumber MSW" << endl;
     233                fCommand = fBufCommand;
    236234                break;
    237235
    238236            case kCmdWriteRunNumberLSW:
    239                 fRunNumber &= 0xffff0000;
    240                 fRunNumber |= fBufCommand[0];
    241                 cout << "-> RunNumber LSW" << endl;
     237                fCommand = fBufCommand;
    242238                break;
    243239
     
    273269        switch (fCommand[0])
    274270        {
     271        case kCmdWriteRunNumberMSW:
     272            fRunNumber &= 0xffff;
     273            fRunNumber |= fBufCommand[0]<<16;
     274            cout << "-> Set RunNumber MSW" << endl;
     275            break;
     276        case kCmdWriteRunNumberLSW:
     277            fRunNumber &= 0xffff0000;
     278            fRunNumber |= fBufCommand[0];
     279            cout << "-> Set RunNumber LSW" << endl;
     280            break;
    275281        case kCmdWriteRoi:
    276282            cout << "-> Set Roi[" << fCommand[1] << "]=" << fBufCommand[0] << endl;
     
    304310        fTriggerEnabled=false;
    305311        fCommandSocket=true;
     312        fRunNumber = 1;
    306313
    307314        fHeader.fStartDelimiter = FAD::kDelimiterStart;
Note: See TracChangeset for help on using the changeset viewer.