[LinuxCNC/linuxcnc Issue#245] halcompile bug in 2.7 with singleton userspace components

未分类 bolang 4个月前 (10-15) 25次浏览

Issue #245 | 状态: 已关闭 | 作者: SebKuzminsky | 创建时间: 2017-03-19

标签: affects 2.7


User Trần Ngọc Quân posted a singleton userspace comp on the emc-users list: https://sourceforge.net/p/emc/mailman/emc-users/thread/080135e6-4df5-ff80-7c7f-849e9738d966%40gmail.com/#msg35732613

This comp has a few bugs, but also exposes a bug in halcompile: singleton userspace components don’t work. The usermainloop() function uses the per-instance macros to access the hal pins, but compinst isn’t defined. The docs say to use FORALLINSTS() in usermainloop(), but that’s silly for a singleton comp. Maybe singleton comps should define compinst to be _compinst_first?

I did my testing in 2.7.


评论 (4)



#4 – jepler 于 2021-02-19

Closing as #664 resolved this in Master. Release Managers can cherry-pick the fix in #664 back to stable versions if desired. Thanks!


原始Issue: https://github.com/LinuxCNC/linuxcnc/issues/245

喜欢 (0)