mirror of
https://github.com/thelsing/knx.git
synced 2025-03-27 00:15:15 +01:00
fix bug when resending telegram
This commit is contained in:
parent
176484ea80
commit
5903651cfa
@ -611,10 +611,10 @@ void TransportLayer::A6(uint16_t tsap)
|
|||||||
void TransportLayer::A7(Priority priority, APDU& apdu)
|
void TransportLayer::A7(Priority priority, APDU& apdu)
|
||||||
{
|
{
|
||||||
_savedPriority = priority;
|
_savedPriority = priority;
|
||||||
_savedFrame = apdu.frame();
|
|
||||||
TPDU& tpdu = apdu.frame().tpdu();
|
TPDU& tpdu = apdu.frame().tpdu();
|
||||||
tpdu.type(DataConnected);
|
tpdu.type(DataConnected);
|
||||||
tpdu.sequenceNumber(_seqNoSend);
|
tpdu.sequenceNumber(_seqNoSend);
|
||||||
|
_savedFrame = apdu.frame();
|
||||||
_networkLayer->dataIndividualRequest(AckRequested, _connectionAddress, NetworkLayerParameter, priority, tpdu);
|
_networkLayer->dataIndividualRequest(AckRequested, _connectionAddress, NetworkLayerParameter, priority, tpdu);
|
||||||
_repCount = 0;
|
_repCount = 0;
|
||||||
enableAckTimeout();
|
enableAckTimeout();
|
||||||
@ -680,6 +680,8 @@ void TransportLayer::A14(uint16_t tsap, Priority priority)
|
|||||||
tpdu.sequenceNumber(0);
|
tpdu.sequenceNumber(0);
|
||||||
_networkLayer->dataIndividualRequest(AckRequested, _connectionAddress, NetworkLayerParameter, SystemPriority, tpdu);
|
_networkLayer->dataIndividualRequest(AckRequested, _connectionAddress, NetworkLayerParameter, SystemPriority, tpdu);
|
||||||
_applicationLayer.disconnectConfirm(priority, tsap, true);
|
_applicationLayer.disconnectConfirm(priority, tsap, true);
|
||||||
|
disableConnectionTimeout();
|
||||||
|
disableAckTimeout();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransportLayer::A15(Priority priority, uint16_t tsap)
|
void TransportLayer::A15(Priority priority, uint16_t tsap)
|
||||||
|
Loading…
Reference in New Issue
Block a user