mirror of
https://github.com/adrcs/ip400.git
synced 2025-04-21 11:13:42 +03:00
fixed transmit frame length problem
This commit is contained in:
parent
7587e390c0
commit
65501e9489
|
@ -299,10 +299,10 @@ void Frame_Txtask_exec(void)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
tFrame = dequeFrame(&txQueue);
|
tFrame = dequeFrame(&txQueue);
|
||||||
|
uint8_t *rawFrame = (uint8_t *)rawTxFrame;
|
||||||
|
|
||||||
if(tFrame != NULL) {
|
if(tFrame != NULL) {
|
||||||
frameLen = tFrame->length;
|
frameLen = tFrame->length;
|
||||||
uint8_t *rawFrame = (uint8_t *)rawTxFrame;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Build the raw frame bytes: see IP400_FRAME struct
|
* Build the raw frame bytes: see IP400_FRAME struct
|
||||||
|
@ -337,7 +337,8 @@ void Frame_Txtask_exec(void)
|
||||||
return; // nothing to send...
|
return; // nothing to send...
|
||||||
}
|
}
|
||||||
|
|
||||||
HAL_MRSubG_PktBasicSetPayloadLength(frameLen);
|
int pktLen = rawFrame - rawTxFrame;
|
||||||
|
HAL_MRSubG_PktBasicSetPayloadLength(frameLen + pktLen);
|
||||||
|
|
||||||
// abort the current rx operation
|
// abort the current rx operation
|
||||||
if(radioCmd == CMD_RX) {
|
if(radioCmd == CMD_RX) {
|
||||||
|
|
Loading…
Reference in a new issue