FIX: modem.clear() bug

This commit is contained in:
2021-12-02 17:25:35 +02:00
parent be77dffa01
commit 43cfb349e9
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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