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
commit 0b095caf9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)
{