1.修复扫描问题

This commit is contained in:
jacycle 2021-08-23 10:50:22 +08:00
parent fa6a9ec7da
commit d316f09175
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}