From d316f09175f8430b8f9e6cf4ed2fdb388ef919cf Mon Sep 17 00:00:00 2001 From: jacycle <515892376@qq.com> Date: Mon, 23 Aug 2021 10:50:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E6=89=AB=E6=8F=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/hc32l136/Libraries/HC32L136_StdPeriph_Driver/src/dmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/hc32l136/Libraries/HC32L136_StdPeriph_Driver/src/dmac.c b/bsp/hc32l136/Libraries/HC32L136_StdPeriph_Driver/src/dmac.c index be82e4bf4c..048d35e12b 100644 --- a/bsp/hc32l136/Libraries/HC32L136_StdPeriph_Driver/src/dmac.c +++ b/bsp/hc32l136/Libraries/HC32L136_StdPeriph_Driver/src/dmac.c @@ -267,8 +267,8 @@ en_result_t Dma_InitChannel(en_dma_channel_t enCh, stc_dma_config_t* pstcConfig) ASSERT(IS_VALID_ADDR_MODE(pstcConfig->enDstAddrMode)); /* Check for channel and NULL pointer */ - if ((!IS_VALID_CH(enCh)) || - (pstcConfig == NULL)) + if ((pstcConfig == NULL) || + (!IS_VALID_CH(enCh))) { return ErrorInvalidParameter; }