Changeset 11356


Ignore:
Timestamp:
07/12/11 11:59:32 (13 years ago)
Author:
tbretz
Message:
Renamed command to switch between command and data socket(s), added SET_DEBUG_EVENT_BUILDER_OUT
File:
1 edited

Legend:

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

    r11342 r11356  
    872872        for (BoardList::iterator i=fBoards.begin(); i!=fBoards.end(); i++)
    873873            i->second->SetDebugTx(evt.GetBool());
     874
     875        return T::GetCurrentState();
     876    }
     877
     878    int SetDebugEb(const EventImp &evt)
     879    {
     880        if (!CheckEventSize(evt.GetSize(), "SetDebugEb", 1))
     881            return T::kSM_FatalError;
     882
     883        SetDebugLog(evt.GetBool());
    874884
    875885        return T::GetCurrentState();
     
    13921402            (boost::bind(&StateMachineFAD::CmdEnable, this, _1, FAD::kCmdTriggerLine))
    13931403            ("Incoming triggers can be accepted/will not be accepted");
    1394         T::AddEvent("SET_DEBUG_MODE", "B:1")
     1404        T::AddEvent("ENABLE_COMMAND_SOCKET_MODE", "B:1")
    13951405            (boost::bind(&StateMachineFAD::CmdEnable, this, _1, FAD::kCmdSocket))
    13961406            ("Set debug mode (yes: dump events through command socket, no=dump events through other sockets)");
     
    14681478             "|debug[bool]:disable or enable debug output for transmitted data (yes/no)");
    14691479
     1480        T::AddEvent("SET_DEBUG_EVENT_BUILDER_OUT", "B:1")
     1481            (boost::bind(&StateMachineFAD::SetDebugEb, this, _1))
     1482            ("");
     1483
    14701484        T::AddEvent("PRINT_EVENT", "S:1")
    14711485            (boost::bind(&StateMachineFAD::PrintEvent, this, _1))
Note: See TracChangeset for help on using the changeset viewer.