[HUST CSE]Modify incorrect expressions passed into the assert function

This commit is contained in:
Kent Zuo
2023-04-19 10:08:04 +08:00
committed by GitHub
parent e3159c6526
commit c074a5b750

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