/* Wait end of transfer and check if received Data are well.  */
void WaitAndCheckEndOfTransfer(void)
/* Wait end of transfer and check if received Data are well.  */
void WaitAndCheckEndOfTransfer(void)
{
  while (ubTransmissionComplete != 1)
  {
  }
  LL_DMA_DisableStream(DMA2, LL_DMA_STREAM_3);
  while (ubReceptionComplete != 1)
  {
  }
  LL_DMA_DisableStream(DMA2, LL_DMA_STREAM_2);
  if(Buffercmp8((uint8_t*)aTxBuffer, (uint8_t*)aRxBuffer, ubNbDataToTransmit))
  {
    LED_Blinking(LED_BLINK_ERROR);
  }
  else
  {
    LED_On();
  }
}