FIX: modem.clear() bug
This commit is contained in:
parent
be77dffa01
commit
43cfb349e9
@ -283,6 +283,7 @@ class cli_device
|
|||||||
//! Clears the incoming data buffer
|
//! Clears the incoming data buffer
|
||||||
void clear () noexcept {
|
void clear () noexcept {
|
||||||
rx_q.clear();
|
rx_q.clear();
|
||||||
|
streams_.store(size_t(0), std::memory_order_release);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! \return Returns the size of the incoming data buffer
|
//! \return Returns the size of the incoming data buffer
|
||||||
|
@ -50,7 +50,7 @@ namespace tbx {
|
|||||||
*
|
*
|
||||||
* Requirements:
|
* Requirements:
|
||||||
* - size_t write_impl(const Char_t* buffer, size_t size) : Return the number of \c Char_t written
|
* - size_t write_impl(const Char_t* buffer, size_t size) : Return the number of \c Char_t written
|
||||||
* - size_t write_(const Char_t ch) : Return the number of \c Char_t written (normally one).
|
* - size_t write_impl(const Char_t ch) : Return the number of \c Char_t written (normally one).
|
||||||
*
|
*
|
||||||
* \tparam Impl_t The derived type
|
* \tparam Impl_t The derived type
|
||||||
* \tparam Char_t The char type to use
|
* \tparam Char_t The char type to use
|
||||||
|
Loading…
x
Reference in New Issue
Block a user