Miscalculated the address length.

This commit is contained in:
Jonathan Naylor 2020-06-17 22:40:09 +01:00
parent 6a80d0ec09
commit 6dbda2795a
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ bool CAX25Demodulator::HDLC(bool b)
switch (m_hdlcBuffer) { switch (m_hdlcBuffer) {
case 0x7E: case 0x7E:
if (m_frame.m_length >= 15U) { if (m_frame.m_length >= 17U) {
result = m_frame.checkCRC(); result = m_frame.checkCRC();
if (!result) if (!result)
m_frame.m_length = 0U; m_frame.m_length = 0U;