Fix compilation bugs.

This commit is contained in:
Jonathan Naylor
2020-06-25 21:23:43 +01:00
parent cb51a14575
commit e164538b09
3 changed files with 7 additions and 7 deletions

View File

@@ -103,7 +103,7 @@ unsigned int CAX25Network::read(unsigned char* data, unsigned int length)
bool complete = false;
unsigned char c;
while (m_serial.read(&c, 1U) > 0U) {
while (m_serial.read(&c, 1U) > 0) {
if (m_rxLength == 0U && c == AX25_FEND)
m_rxData[m_rxLength++] = c;
else if (m_rxLength > 0U)