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