Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix endless spool mode group indexing bug #157

Open
wants to merge 1 commit into
base: no_toolhead_sensor
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Klipper_Files/Extra module/ercf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,8 +1266,9 @@ def cmd_ERCF_ENCODER_RUNOUT(self, gcmd):
next_check = self.tool_selected + 1
next_tool = -1
while next_check != self.tool_selected:
if next_check > len(self.selector_offsets):
if next_check > len(self.selector_offsets) - 1:
next_check = 0
continue
self._log_trace("Checking tool %d to see if it matches the right group" % next_check)
if self.endless_spool_groups[next_check] == self.endless_spool_groups[self.tool_selected]:
self._log_info("Found next tool in group: %d" % next_check)
Expand Down