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

Mg longshot #174

Merged
merged 7 commits into from
Dec 6, 2024
Merged

Mg longshot #174

merged 7 commits into from
Dec 6, 2024

Conversation

MG-longshot
Copy link
Collaborator

@MG-longshot MG-longshot commented Dec 6, 2024

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)

  • I have performed a self-review of my code
  • CHANGELOG.md is updated (if end-user facing)
  • Sent notification to software-design channel requesting review

@@ -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:
Copy link
Contributor

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -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':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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':

Copy link
Collaborator Author

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
Copy link
Contributor

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

@MG-longshot MG-longshot merged commit 2503685 into DEV Dec 6, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants