mirror of
https://github.com/thelsing/knx.git
synced 2025-02-23 00:15:35 +01:00
start confirm timout only after last byte was sent (#25)
* bugfix, print not allowed in constructor * Update tpuart_data_link_layer.cpp - start confirm timout only after last byte was sent - increase BYTE_TIMEOUT
This commit is contained in:
parent
de8f4631b6
commit
1c53cf83cd
@ -80,8 +80,8 @@
|
||||
#define RX_WAIT_DATA_CON 3
|
||||
#define TX_FRAME 4
|
||||
|
||||
#define BYTE_TIMEOUT 3 //milli seconds
|
||||
#define CONFIRM_TIMEOUT 500 //milli seconds
|
||||
#define BYTE_TIMEOUT 10 //milli seconds
|
||||
#define CONFIRM_TIMEOUT 500 //milli seconds
|
||||
#define RESET_TIMEOUT 100 //milli seconds
|
||||
|
||||
void TpUartDataLinkLayer::loop()
|
||||
@ -107,8 +107,6 @@ void TpUartDataLinkLayer::loop()
|
||||
if (!_waitConfirm && !isTxQueueEmpty())
|
||||
{
|
||||
loadNextTxFrame();
|
||||
_waitConfirm = true;
|
||||
_waitConfirmStartTime = _platform.millis();
|
||||
_loopState = TX_FRAME;
|
||||
}
|
||||
}
|
||||
@ -116,6 +114,8 @@ void TpUartDataLinkLayer::loop()
|
||||
case TX_FRAME:
|
||||
if (sendSingleFrameByte() == false)
|
||||
{
|
||||
_waitConfirm = true;
|
||||
_waitConfirmStartTime = _platform.millis();
|
||||
_loopState = IDLE;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user