Skip to content

Commit

Permalink
memset first
Browse files Browse the repository at this point in the history
  • Loading branch information
Ing-Dom committed Feb 9, 2024
1 parent 9adc090 commit 75718ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/knx/cemi_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +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;

}

CemiFrame::CemiFrame(const CemiFrame & other)
Expand Down

0 comments on commit 75718ba

Please sign in to comment.