Skip to content

Commit 6f5eb46

Browse files
authored
Merge pull request #46 from guglie/mac802154-pr
fix MAC80215_PACKET_INIT for TDoA, closes #45
2 parents 4e23dc8 + 3292a04 commit 6f5eb46

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/uwb_tdoa_anchor2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ static void setTxData(dwDevice_t *dev)
277277
static int lppLength = 0;
278278

279279
if (firstEntry) {
280+
MAC80215_PACKET_INIT(txPacket, MAC802154_TYPE_DATA);
280281

281282
memcpy(txPacket.sourceAddress, base_address, 8);
282283
txPacket.sourceAddress[0] = ctx.anchorId;

src/uwb_tdoa_anchor3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ static void setTxData(dwDevice_t *dev)
569569
static int lppLength = 0;
570570

571571
if (firstEntry) {
572+
MAC80215_PACKET_INIT(txPacket, MAC802154_TYPE_DATA);
572573

573574
memcpy(txPacket.sourceAddress, base_address, 8);
574575
txPacket.sourceAddress[0] = ctx.anchorId;

0 commit comments

Comments
 (0)