Skip to content
Snippets Groups Projects
Commit c8c60796 authored by kpetersn's avatar kpetersn
Browse files

Corrected the MIP bits so that changes in the external-move bit are displayed properly.

parent 1423c093
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,8 @@ mip_dict = {1 << 0 : ("Jog forward", ("Done", "In Progress")),
1 << 11 : ("Delay acknowledge", ("Done", "In Progress")),
1 << 12 : ("Jog request", ("Done", "In Progress")),
1 << 13 : ("Jog stopping", ("Done", "In Progress")),
1 << 14 : ("External move", ("Done", "In Progress")),
1 << 14 : ("Post-jog backlash 2", ("Done", "In Progress")),
1 << 15 : ("External move", ("Done", "In Progress")),
}
#!print(mip_dict)
......@@ -80,7 +81,7 @@ def mip_diff(last_mip, current_mip):
changed_bits = last_mip ^ current_mip
# Display changes
for index in range(15):
for index in range(16):
bit = 1 << index
if (bit & changed_bits):
if (current_mip & bit):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment