FIX: modem.clear() bug
This commit is contained in:
@@ -283,6 +283,7 @@ class cli_device
|
||||
//! Clears the incoming data buffer
|
||||
void clear () noexcept {
|
||||
rx_q.clear();
|
||||
streams_.store(size_t(0), std::memory_order_release);
|
||||
}
|
||||
|
||||
//! \return Returns the size of the incoming data buffer
|
||||
|
||||
Reference in New Issue
Block a user