mirror of
https://github.com/thelsing/knx.git
synced 2025-01-02 00:06:43 +01:00
FIX: occasional endless loop (wrong buffer limit) (#234)
Co-authored-by: Waldemar Porscha <wp@porscha.eu>
This commit is contained in:
parent
4c37c21699
commit
8807780b55
@ -335,7 +335,7 @@ void TpUartDataLinkLayer::loop()
|
|||||||
#ifdef DBG_TRACE
|
#ifdef DBG_TRACE
|
||||||
print(rxByte, HEX);
|
print(rxByte, HEX);
|
||||||
#endif
|
#endif
|
||||||
if (_RxByteCnt == MAX_KNX_TELEGRAM_SIZE)
|
if (_RxByteCnt == MAX_KNX_TELEGRAM_SIZE - 2)
|
||||||
{
|
{
|
||||||
println("invalid telegram size");
|
println("invalid telegram size");
|
||||||
enterRxWaitEOP();
|
enterRxWaitEOP();
|
||||||
@ -401,6 +401,8 @@ void TpUartDataLinkLayer::loop()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
println("invalid _rxState");
|
||||||
|
enterRxWaitEOP();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} while (_rxState == RX_L_ADDR && (stayInRx || _platform.uartAvailable()));
|
} while (_rxState == RX_L_ADDR && (stayInRx || _platform.uartAvailable()));
|
||||||
|
Loading…
Reference in New Issue
Block a user