Skip to content

Commit

Permalink
don't clean bufer after ACK
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Jan 25, 2025
1 parent 252b40e commit c10eea1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ZeDMDComm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,10 +736,6 @@ bool ZeDMDComm::SendChunks(uint8_t* pData, uint16_t size)
}

status = sp_blocking_read(m_pSerialPort, ack, 1, ZEDMD_COMM_SERIAL_READ_TIMEOUT);
while (!m_stopFlag.load(std::memory_order_relaxed) && sp_input_waiting(m_pSerialPort) > 0)
{
sp_nonblocking_read(m_pSerialPort, ack, 1);
}
if (ack[0] == 'F')
{
m_fullFrameFlag.store(true, std::memory_order_release);
Expand Down

0 comments on commit c10eea1

Please sign in to comment.