Skip to content

Commit

Permalink
hack for sendung online from tp dll to tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
Ing-Dom committed Feb 9, 2024
1 parent 75718ba commit 9dc2d4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/knx/cemi_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ CemiFrame::CemiFrame(uint8_t apduLength)
_tpdu(_data + TPDU_LPDU_DIFF, *this),
_apdu(_data + APDU_LPDU_DIFF, *this)
{
memset(_data, 0, apduLength + APDU_LPDU_DIFF);
_ctrl1 = _data + CEMI_HEADER_SIZE;
_npdu.octetCount(apduLength);
_length = _npdu.length() + NPDU_LPDU_DIFF;

memset(_data, 0, apduLength + APDU_LPDU_DIFF);
_ctrl1[0] |= Broadcast;
_npdu.octetCount(apduLength);
_length = _npdu.length() + NPDU_LPDU_DIFF;
}

CemiFrame::CemiFrame(const CemiFrame & other)
Expand Down
2 changes: 1 addition & 1 deletion src/knx/data_link_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ bool DataLinkLayer::sendTelegram(NPDU & npdu, AckType ack, uint16_t destinationA
#endif
tmpFrame.confirm(ConfirmNoError);

if(frame.sourceAddress() == _deviceObject.individualAddress())
if(frame.sourceAddress() == _deviceObject.individualAddress() && mediumType() == DptMedium::KNX_TP1)
_cemiServer->dataIndicationToTunnel(tmpFrame);
#endif

Expand Down

0 comments on commit 9dc2d4b

Please sign in to comment.