Skip to content

Commit

Permalink
Merge pull request #46 from guglie/mac802154-pr
Browse files Browse the repository at this point in the history
fix MAC80215_PACKET_INIT for TDoA, closes #45
  • Loading branch information
krichardsson authored Aug 6, 2019
2 parents 4e23dc8 + 3292a04 commit 6f5eb46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/uwb_tdoa_anchor2.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ static void setTxData(dwDevice_t *dev)
static int lppLength = 0;

if (firstEntry) {
MAC80215_PACKET_INIT(txPacket, MAC802154_TYPE_DATA);

memcpy(txPacket.sourceAddress, base_address, 8);
txPacket.sourceAddress[0] = ctx.anchorId;
Expand Down
1 change: 1 addition & 0 deletions src/uwb_tdoa_anchor3.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ static void setTxData(dwDevice_t *dev)
static int lppLength = 0;

if (firstEntry) {
MAC80215_PACKET_INIT(txPacket, MAC802154_TYPE_DATA);

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

0 comments on commit 6f5eb46

Please sign in to comment.