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

Fixed error in GCode viewer where multiple filaments available (e.g. … #3053

Merged
merged 1 commit into from Feb 18, 2019

Conversation

AndyQ
Copy link
Contributor

@AndyQ AndyQ commented Feb 17, 2019

What does this PR do and why is it necessary?

When multiple filaments are available (e.g. using a Prusa MMU2), but you are printing with say filament 4 only, the GCode Viewer throws errors as it loops over all filaments set on the layer - the unused ones are undefined and an exception gets generated). This causes the layer height slider to not get updated correctly.

How was it tested? How can it be tested by the reviewer?

Tested on with Prusa MK3 with MMU2.

Any background context you want to provide?

What are the relevant tickets if any?

Screenshots (if appropriate)

N/A

Further notes

Fix is just to add check if filament is not undefined before using it

…using Prusa MMU2), but only using a filament that isn't the first one

e.g. filament 4
@foosel foosel merged commit 4347516 into OctoPrint:maintenance Feb 18, 2019
@foosel
Copy link
Member

foosel commented Feb 18, 2019

Well spotted, thanks for the fix! 👍

@AndyQ AndyQ deleted the MultipleFiliament_fix branch May 27, 2019 20:07
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed/merged. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants