diff --git a/src/uwb_tdoa_anchor2.c b/src/uwb_tdoa_anchor2.c index 7add365..f6841a3 100644 --- a/src/uwb_tdoa_anchor2.c +++ b/src/uwb_tdoa_anchor2.c @@ -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; diff --git a/src/uwb_tdoa_anchor3.c b/src/uwb_tdoa_anchor3.c index 97b0257..5ba9a25 100644 --- a/src/uwb_tdoa_anchor3.c +++ b/src/uwb_tdoa_anchor3.c @@ -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;