hpmicro / hpm_sdk

No PR will be accepted for now, but feel free to submit issue, very appreciated.
https://hpm-sdk.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
132 stars 35 forks source link

pwmv2_shadow_register_lock被调用了两次 #48

Open Cherish-Gww opened 1 week ago

Cherish-Gww commented 1 week ago

位置: https://github.com/hpmicro/hpm_sdk/blob/276af9395fde9ca963ac5bf7ad1e516163168bfa/samples/motor_ctrl/bldc_foc/src/bldc_foc.c#L677C1-L678C1

其他bldc_foc.c文件也是类似。

pwmv2_shadow_register_unlock
pwmv2_shadow_register_lock

应该以成对出现,而上述位置中的pwmv2_shadow_register_lock 是单独出现。

willChuai commented 5 days ago

hi,感谢报告问题。目前看这句代码是无效的,会在下一个版本中移除。