[LinuxCNC/linuxcnc PR#119] Change field size so data from libmodbus fits

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

Issue #119 | 状态: 已关闭 | 作者: jamwaffles | 创建时间: 2016-07-23


Make sure you can check all these boxes before submitting your issue—Thank you!
– [x] The submitted code is available under the GNU GPL version 2 with the “or later” clause
– [x] You have certified that this is the case by including a “Signed-off-by” message in each commit
– [x] You used your real name and a working e-mail address in this message

I’ve been trying to get my new WJ200 VFD working but the module kept segfaulting. It seems this is a really old issue, so I’m having a go at fixing it. Taking inspiration from this forum post I changed a buffer size to work better with libmodbus:

https://forum.linuxcnc.org/forum/38-general-linuxcnc-questions/28946-wj200-vfd-segfaulting-after-updates?start=10

Not absolutely sure what I’m doing, but I tested this with the v2.4.7 tag and latest master
and it works fine, whereas before the module would segfault on initialisation. Is this because something in libmodbus changed?

Signed-off-by: James Waples jamwaffles@gmail.com


评论 (3)

#1 – jepler 于 2016-07-23

Thank you for your contribution. I have applied your fix to 2.6, 2.7, and master branches. The result will appear shortly on github.



原始Issue: https://github.com/LinuxCNC/linuxcnc/pull/119

喜欢 (0)