Skip to content

Commit

Permalink
Transceiver52M: Delay UHD messaging registration until after start
Browse files Browse the repository at this point in the history
We want to push UHD logs to the OpenBTS logging system, but most
device errors occur at startup, so keep the output on stdout until
after device initialization. That way obvious errors are easily
viewable before seeing the useless TRX timeout message.

Signed-off-by: Thomas Tsou <tom@tsou.cc>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6753 19bc5d8c-e614-43d4-8b26-e1612bc8e597
  • Loading branch information
ttsou committed Oct 17, 2013
1 parent 38ee1d8 commit 00aa80d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Transceiver52M/UHDDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,6 @@ bool uhd_device::parse_dev_type()

int uhd_device::open(const std::string &args)
{
// Register msg handler
uhd::msg::register_handler(&uhd_msg_handler);

// Find UHD devices
uhd::device_addr_t addr(args);
uhd::device_addrs_t dev_addrs = uhd::device::find(addr);
Expand Down Expand Up @@ -644,6 +641,9 @@ bool uhd_device::start()

setPriority();

// Register msg handler
uhd::msg::register_handler(&uhd_msg_handler);

// Start asynchronous event (underrun check) loop
async_event_thrd.start((void * (*)(void*))async_event_loop, (void*)this);

Expand Down

0 comments on commit 00aa80d

Please sign in to comment.