Update TFT_eSPI_STM32.c

This commit is contained in:
Bodmer 2020-12-28 01:03:56 +00:00 committed by GitHub
parent 16eefd6ada
commit a4e94634a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -594,8 +594,10 @@ bool TFT_eSPI::initDMA(bool ctrl_cs)
** Function name: initDMA
** Description: Initialise the DMA engine - returns true if init OK
***************************************************************************************/
bool TFT_eSPI::initDMA(void)
bool TFT_eSPI::initDMA(bool ctrl_cs)
{
ctrl_cs = ctrl_cs; // Not used for STM32, so stop compiler warning
__HAL_RCC_DMA1_CLK_ENABLE(); // Enable DMA1 clock
dmaHal.Init.Mode = DMA_NORMAL; //DMA_CIRCULAR; // // Normal = send buffer once