Skip to content

Commit

Permalink
Merge pull request Z-Bolt#62 from ljscz/mmu2_shared_nozzle
Browse files Browse the repository at this point in the history
Added support for shared nozzle used by Prusa's MMU2
  • Loading branch information
alexkv authored Dec 2, 2019
2 parents fc33e3a + 50b3ecd commit 12876bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/idle_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ func (m *idleStatusPanel) defineToolsCount() int {
return 0
}

if profile.Extruder.SharedNozzle {
return 1
}

return profile.Extruder.Count
}

Expand Down
4 changes: 4 additions & 0 deletions ui/print_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ func (m *printStatusPanel) defineToolsCount() int {
return 0
}

if profile.Extruder.SharedNozzle {
return 1
}

return profile.Extruder.Count
}

Expand Down
1 change: 1 addition & 0 deletions vendor/github.com/mcuadros/go-octoprint/common.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12876bc

Please sign in to comment.