-
Notifications
You must be signed in to change notification settings - Fork 20
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
Mg longshot #174
Mg longshot #174
Conversation
@@ -238,10 +238,15 @@ def prep_callback(self, eventtime, state): | |||
if self.load_state == True and self.prep_state == True: | |||
self.status = 'Loaded' | |||
self.AFC.afc_led(self.AFC.led_ready, led) | |||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This else statement need to stay, if a lane is ejected the led stays green
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
extras/AFC_stepper.py
Outdated
@@ -238,10 +238,18 @@ def prep_callback(self, eventtime, state): | |||
if self.load_state == True and self.prep_state == True: | |||
self.status = 'Loaded' | |||
self.AFC.afc_led(self.AFC.led_ready, led) | |||
elif self.name == self.AFC.current and self.AFC.STATUS == 'Printing' and self.AFC.lanes[self.unit][self.name]['runout_lane'] != 'NONE': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elif self.name == self.AFC.current and self.AFC.STATUS == 'Printing' and self.AFC.lanes[self.unit][self.name]['runout_lane'] != 'NONE': | |
elif self.name == self.AFC.current and self.IDLE.state == 'Printing' and self.AFC.lanes[self.unit][self.name]['runout_lane'] != 'NONE': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
self.gcode = self.printer.lookup_object('gcode') | ||
self.STATUS= self.IDLE.state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this will always return the same state and not update, this line can be removed
Major Changes in this PR
Notes to Code Reviewers
How the changes in this PR are tested
PR Checklist: (Checked-off items are either done or do not apply to this PR)