Changeset 18952


Ignore:
Timestamp:
03/05/18 15:04:07 (7 years ago)
Author:
tbretz
Message:
Improved debugging
File:
1 edited

Legend:

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

    r18834 r18952  
    305305                    // This check is only done at startup
    306306                    FTM::StaticData data(fBuffer);
     307
     308                    if (fIsVerbose)
     309                    {
     310                        Out() << endl << kBold << "Static data received:" << endl;
     311                        Out() << data;
     312                        if (fIsHexOutput)
     313                            Out() << Converter::GetHex<uint16_t>(data, 16) << endl;
     314                    }
     315
    307316                    if (!CheckConsistency(data))
    308317                    {
     
    24892498        fFTM.SetHexOutput(conf.Get<bool>("hex-out"));
    24902499        fFTM.SetDynamicOut(conf.Get<bool>("dynamic-out"));
     2500        fFTM.SetDebugTx(conf.Get<bool>("debug-tx"));
    24912501
    24922502        // ---------- Setup clock conditioner frequencies ----------
     
    27392749        ("hex-out",       po_bool(),  "Enable printing contents of all printed messages also as hex data.")
    27402750        ("dynamic-out",   po_bool(),  "Enable printing received dynamic data.")
     2751        ("debug-tx",      po_bool(),  "Enable debugging of ethernet transmission.")
    27412752//        ("default-setup", var<string>(), "Binary file with static data loaded whenever a connection to the FTM was established.")
    27422753        ;
Note: See TracChangeset for help on using the changeset viewer.