mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-06 06:55:05 +00:00
Lots of small tweaks.
This commit is contained in:
parent
11b18207ff
commit
8f9744c0ec
8 changed files with 61 additions and 53 deletions
|
|
@ -58,10 +58,10 @@ uint16_t CSerialRB::getData() const
|
|||
return m_length - m_tail + m_head;
|
||||
}
|
||||
|
||||
void CSerialRB::put(uint8_t c)
|
||||
bool CSerialRB::put(uint8_t c)
|
||||
{
|
||||
if (m_full)
|
||||
return;
|
||||
return false;
|
||||
|
||||
m_buffer[m_head] = c;
|
||||
|
||||
|
|
@ -71,6 +71,8 @@ void CSerialRB::put(uint8_t c)
|
|||
|
||||
if (m_head == m_tail)
|
||||
m_full = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
uint8_t CSerialRB::peek() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue