diff options
author | Peter Horvath <ejcspii@gmail.com> | 2018-06-30 15:22:25 +0200 |
---|---|---|
committer | Marcus Müller <marcus.mueller@ettus.com> | 2018-07-08 08:41:04 +0200 |
commit | 0b752c07ef9a2597f1a8f6e910291eed3376e8aa (patch) | |
tree | d04860f69c2f6237f76748d0720c1842456a6472 /gr-uhd | |
parent | 7247b50a23681475cdf88518b52fad3185321073 (diff) |
Unbreak boost 1.67. Constrain the delay in message_strobe to integer milliseconds.
Diffstat (limited to 'gr-uhd')
-rw-r--r-- | gr-uhd/lib/usrp_block_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-uhd/lib/usrp_block_impl.cc b/gr-uhd/lib/usrp_block_impl.cc index df1832ed2e..80a6fa67f9 100644 --- a/gr-uhd/lib/usrp_block_impl.cc +++ b/gr-uhd/lib/usrp_block_impl.cc @@ -129,7 +129,7 @@ bool usrp_block_impl::_wait_for_locked_sensor( while (true) { if ((not first_lock_time.is_not_a_date_time()) and - (boost::get_system_time() > (first_lock_time + boost::posix_time::seconds(LOCK_TIMEOUT)))) { + (boost::get_system_time() > (first_lock_time + boost::posix_time::seconds(static_cast<long>(LOCK_TIMEOUT))))) { break; } @@ -140,7 +140,7 @@ bool usrp_block_impl::_wait_for_locked_sensor( else { first_lock_time = boost::system_time(); //reset to 'not a date time' - if (boost::get_system_time() > (start + boost::posix_time::seconds(LOCK_TIMEOUT))){ + if (boost::get_system_time() > (start + boost::posix_time::seconds(static_cast<long>(LOCK_TIMEOUT)))) { return false; } } |