Src/main.c
size_t SCPI_Write(scpi_t * context, const char * data, size_t len) {
    (void) context;	
	if (len > 0)
	{		
		for (int i = 0;i < len;i++)
		{
			osMessageQueuePut(cmdTxQueueHandle,&data[i],NULL,0U);
		}
		LL_USART_EnableIT_TXE(USART1);
	}
	return len;
}
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
Private user code
USER CODE BEGIN 0
Private user code USER CODE BEGIN 0
size_t SCPI_Write(scpi_t * context, const char * data, size_t len) {
    (void) context;	
	if (len > 0)
	{		
		for (int i = 0;i < len;i++)
		{
			osMessageQueuePut(cmdTxQueueHandle,&data[i],NULL,0U);
		}
		LL_USART_EnableIT_TXE(USART1);
	}
	return len;
}
size_t SCPI_Write ( scpi_t * context , const char * data , size_t len ) { ( void ) context ; if ( len > 0 ) { for ( int i = 0 ; i < len ; i ++ ) { osMessageQueuePut ( cmdTxQueueHandle , & data [ i ] , NULL , 0U ) ; } LL_USART_EnableIT_TXE ( USART1 ) ; } return len ; }
Private user code
USER CODE BEGIN 0
Private user code USER CODE BEGIN 0