22
22
void ubx::_8::SerialPortReceiver::start()
25
24
auto flush_rc = ::tcflush(sp.lowest_layer().native_handle(), TCIOFLUSH);
27
26
if (flush_rc) throw std::system_error(errno, std::system_category());
30
29
void ubx::_8::SerialPortReceiver::stop() {
35
33
void ubx::_8::SerialPortReceiver::start_read()
38
35
auto thiz = shared_from_this();
39
36
boost::asio::async_read(sp, boost::asio::buffer(&buffer.front(), buffer.size()),
40
37
[thiz, this](const boost::system::error_code& ec, std::size_t transferred) {