diff options
Diffstat (limited to 'host/lib/usrp/x300/x300_fw_uart.cpp')
-rw-r--r-- | host/lib/usrp/x300/x300_fw_uart.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/x300/x300_fw_uart.cpp b/host/lib/usrp/x300/x300_fw_uart.cpp index b6c2081ad..912d977ed 100644 --- a/host/lib/usrp/x300/x300_fw_uart.cpp +++ b/host/lib/usrp/x300/x300_fw_uart.cpp @@ -53,7 +53,7 @@ struct x300_uart_iface : uart_iface void write_uart(const std::string &buff) { - boost::mutex::scoped_lock(_write_mutex); + boost::mutex::scoped_lock lock(_write_mutex); for(const char ch: buff) { this->putchar(ch); @@ -125,7 +125,7 @@ struct x300_uart_iface : uart_iface std::string read_uart(double timeout) { - boost::mutex::scoped_lock(_read_mutex); + boost::mutex::scoped_lock lock(_read_mutex); const auto exit_time = std::chrono::steady_clock::now() + std::chrono::microseconds(int64_t(timeout*1e6)); |