Changeset 13109


Ignore:
Timestamp:
03/14/12 19:27:19 (13 years ago)
Author:
tbretz
Message:
Removed default for device address; only connect automatically if device address given.
File:
1 edited

Legend:

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

    r12709 r13109  
    20042004        fBias.SetVerbose(!conf.Get<bool>("quiet"));
    20052005
    2006         fBias.SetEndpoint(conf.Get<string>("dev"));
    2007         T::Message("Setting device to "+fBias.URL());
     2006        if (conf.Has("dev"))
     2007        {
     2008            fBias.SetEndpoint(conf.Get<string>("dev"));
     2009            T::Message("Setting device to "+fBias.URL());
     2010        }
    20082011
    20092012        const uint16_t step = conf.Get<uint16_t>("ramp-step");
     
    20872090        // --------------------------------------------------------------------------
    20882091
    2089         fBias.Connect();
     2092        if (conf.Has("dev"))
     2093            fBias.Connect();
    20902094
    20912095        return -1;
     
    21082112    control.add_options()
    21092113        ("no-dim,d",        po_bool(),  "Disable dim services")
    2110         ("dev",             var<string>("FTE00FOH"),  "Device address of USB port to bias-power supply")
     2114        ("dev",             var<string>(),       "Device address of USB port to bias-power supply")
    21112115        ("quiet,q",         po_bool(),           "Disable printing contents of all received messages (except dynamic data) in clear text.")
    21122116        ("ramp-delay",      var<uint16_t>(15),   "Delay between the answer of one ramping step and sending the next ramp command to all channels in milliseconds.")
Note: See TracChangeset for help on using the changeset viewer.