[Fix No assert if Tx tasks are empty
@@ -1698,6 +1698,8 @@ error_return_t MsgAlloc_SetTxTask(ll_service_t *ll_service_pt, uint8_t *data, ui
* @param None
******************************************************************************/
void MsgAlloc_PullMsgFromTxTask(void)
+{
+ if (tx_tasks_stack_id != 0)
{
LUOS_ASSERT((tx_tasks_stack_id > 0) && (tx_tasks_stack_id <= MAX_MSG_NB));
//
@@ -1735,6 +1737,7 @@ void MsgAlloc_PullMsgFromTxTask(void)
LuosHAL_SetIrqState(true);
MsgAlloc_FindNewOldestMsg();
}
+}
/******************************************************************************
* @brief remove all transmit task of a specific service
* @param None
