solves #178 bugfix when sending frames > 63 byte, missing masking of upper bits after sending a U_DataOffset

This commit is contained in:
SirSydom 2022-02-22 16:28:38 +01:00
parent 53425e2ef7
commit 7910bd886a

View File

@ -594,7 +594,7 @@ bool TpUartDataLinkLayer::sendSingleFrameByte()
}
if (_TxByteCnt != _sendBufferLength - 1)
cmd[0] = U_L_DATA_START_CONT_REQ | _TxByteCnt;
cmd[0] = U_L_DATA_START_CONT_REQ | (_TxByteCnt % 64);
else
cmd[0] = U_L_DATA_END_REQ | _TxByteCnt;