Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/mac/LoRaMac.c
Original file line number Diff line number Diff line change
Expand Up @@ -3442,6 +3442,11 @@ LoRaMacStatus_t SendFrameOnChannel( uint8_t channel )
// Send now
Radio.Send( MacCtx.PktBuffer, MacCtx.PktBufferLen );

if(MacCtx.ChannelsNbTransCounter != 1 && MacCtx.MacPrimitives->MacMcpsRetransmit != NULL)
{
MacCtx.MacPrimitives->MacMcpsRetransmit( );
}

return LORAMAC_STATUS_OK;
}

Expand Down
6 changes: 6 additions & 0 deletions src/mac/LoRaMac.h
Original file line number Diff line number Diff line change
Expand Up @@ -2550,6 +2550,12 @@ typedef struct sLoRaMacPrimitives
* \param [OUT] MCPS-Confirm parameters
*/
void ( *MacMcpsConfirm )( McpsConfirm_t* McpsConfirm );
/*!
* \brief MCPS-Retransmit primitive
*
* \param [OUT] MCPS-Retransmit parameters
*/
void ( *MacMcpsRetransmit )( void );
/*!
* \brief MCPS-Indication primitive
*
Expand Down