mirror of
https://github.com/adrcs/ip400.git
synced 2025-04-19 02:23:44 +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);
|
||||
uint8_t *rawFrame = (uint8_t *)rawTxFrame;
|
||||
|
||||
if(tFrame != NULL) {
|
||||
frameLen = tFrame->length;
|
||||
uint8_t *rawFrame = (uint8_t *)rawTxFrame;
|
||||
|
||||
/*
|
||||
* Build the raw frame bytes: see IP400_FRAME struct
|
||||
|
@ -337,7 +337,8 @@ void Frame_Txtask_exec(void)
|
|||
return; // nothing to send...
|
||||
}
|
||||
|
||||
HAL_MRSubG_PktBasicSetPayloadLength(frameLen);
|
||||
int pktLen = rawFrame - rawTxFrame;
|
||||
HAL_MRSubG_PktBasicSetPayloadLength(frameLen + pktLen);
|
||||
|
||||
// abort the current rx operation
|
||||
if(radioCmd == CMD_RX) {
|
||||
|
|
Loading…
Reference in a new issue