Merge pull request #360 from Kent-Zuo/master
[HUST CSE]Modify incorrect expressions passed into the assert function
This commit is contained in:
commit
0b095caf9f
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue