1
0

FIX: modem.clear() bug

Dieser Commit ist enthalten in:
Christos Choutouridis 2021-12-02 17:25:35 +02:00
Ursprung be77dffa01
Commit 43cfb349e9
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -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

Datei anzeigen

@ -50,7 +50,7 @@ namespace tbx {
*
* Requirements:
* - 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 Char_t The char type to use