Merge pull request #360 from Kent-Zuo/master

[HUST CSE]Modify incorrect expressions passed into the assert function
This commit is contained in:
Supowang
2023-04-19 10:36:22 +08:00
committed by GitHub

View File

@@ -95,7 +95,7 @@ void SWM_SetFixedPinSelect(SWM_Type *base, swm_select_fixed_pin_t func, bool ena
{
/* Check arguments */
assert(NULL != base);
assert((func > 0) || func < kSWM_FIXEDPIN_NUM_FUNCS);
assert((func > 0) && func < kSWM_FIXEDPIN_NUM_FUNCS);
if (enable)
{