Changeset 11773 for fact/BIASctrl


Ignore:
Timestamp:
08/04/11 13:23:18 (13 years ago)
Author:
ogrimm
Message:
Fix for reset button detection
Location:
fact/BIASctrl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fact/BIASctrl/Crate.cc

    r11772 r11773  
    186186
    187187  if (Data.size() == 3) {
     188        ResetHit = false;
    188189    ErrorCount = 0;
    189190        return 1;
     
    217218        OC[i][j] = Data[Count] & 128;
    218219        Present[i][j] = (Data[Count+2] & 0x70) == 0 ? true : false;
    219         ResetHit = Data[Count+2] & 128;
     220        if (!ResetHit) ResetHit = (Data[Count+2] & 0x80) == 0 ? false : true;
    220221        Count += 3;
    221222  }
  • fact/BIASctrl/User.cc

    r11772 r11773  
    615615
    616616      if (Crates[i]->ResetHit) {
    617         Message(INFO, "Manual reset of board %d, setting voltages to zero and issuing system reset", i);
     617        Message(INFO, "Manual reset of crate %d, setting voltages to zero and issuing system reset", i);
    618618                Crates[i]->GlobalSet(0);
    619619                Crates[i]->SystemReset();
     
    621621
    622622      if (!Crates[i]->WrapOK) {
    623         Message(ERROR, "Wrap counter mismatch of board %d", i);
     623        Message(ERROR, "Wrap counter mismatch of crate %d", i);
    624624      }
    625625
Note: See TracChangeset for help on using the changeset viewer.