Index of incoming data in force multiple coils function

Bug #159443 reported by Stéphane Raimbault on 2007-11-02
2
Affects Status Importance Assigned to Milestone
libmodbus
Status tracked in Trunk
1.2
Fix Released
Medium
Stéphane Raimbault
Trunk
Fix Released
Medium
Stéphane Raimbault

Bug Description

Reported by Stefan Bisanz.

While using your libmodbus library (version 1.2.0, I think), I have found
a bug in function force_multiple_coils; there, the variable pos which is
the index of the incoming data_src array is reset to 0 every 8 coils.
Therefore, the variable should be declared outside the respective
for-loop.

Changed in libmodbus:
assignee: nobody → sra
importance: Undecided → Medium
milestone: none → 1.2.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers