Closed zjgfree closed 1 year ago
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
在原本的代码中,kSWM_FIXEDPIN_NUM_FUNCS在fsl_swm_connections.h中定义的值为
kSWM_FIXEDPIN_NUM_FUNCS = 0x80000041
导致assert函数无法检验条件正确性并终止程序执行。 原代码为:assert((func > 0) || func < kSWM_FIXEDPIN_NUM_FUNCS);
结合函数使用语境,将'||'修改为'&&',修改后代码如下:assert((func > 0) && func < kSWM_FIXEDPIN_NUM_FUNCS);
从而解决了这个问题。