Changeset 10261


Ignore:
Timestamp:
03/28/11 13:06:34 (14 years ago)
Author:
ogrimm
Message:
Boards with communication error are set inactive
Location:
fact/FADctrl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FAD.cc

    r10226 r10261  
    907907          for (unsigned int i=0; i<Boards.size(); i++) {
    908908                if (IDString.find(string("ACALIBDONE")+Boards[i]->Name) != string::npos) AcalibDone[i] = true;
    909                 if (!AcalibDone[i] && Boards[i]->Active && Boards[i]->CommOK) Done = false;
     909                if (!AcalibDone[i] && Boards[i]->Active) Done = false;
    910910          }
    911911          // Amplitude calibration finished?
  • fact/FADctrl/FADBoard.cc

    r10226 r10261  
    1717  // Initialization
    1818  m = Parent;
    19   Active = true;
     19  Active = false;
    2020  Continue = true;
    2121  CommOK = false;
     
    367367    m->PrintMessage("Could not connect to %s at port %d (%s)\n", Name, Port, strerror(errno));
    368368  }
    369   else CommOK = true;
     369  else {
     370        CommOK = true;
     371        Active = true;
     372  }
     373
    370374  memset(&PrevStatus, 0, sizeof(PrevStatus));
    371375
     
    524528  } // while()
    525529 
    526   // Close socket descriptor
     530  // Set inactive and close socket descriptor
     531  Active = false;
     532
    527533  if (close(Socket) == -1) {
    528534        m->PrintMessage("Could not close socket descriptor for board %s (%s)", Name, strerror(errno)); 
  • fact/FADctrl/History.txt

    r10212 r10261  
    17171/3/2011        Board list can be passed via command line
    18182/3/2011        Implemented new FAD data format
     1928/3/2011       Boards with communication error set themselves inactive
Note: See TracChangeset for help on using the changeset viewer.