Skip to content

Commit

Permalink
feat: adds Kalico z_tilt_ng support
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Dec 18, 2024
1 parent 6c6db5b commit aa12c3f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/widgets/toolhead/ToolheadCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ export default class ToolheadCard extends Mixins(StateMixin, ToolheadMixin) {
}
get printerSupportsZTiltAdjust (): boolean {
return 'z_tilt' in this.printerSettings
return (
'z_tilt' in this.printerSettings ||
'z_tilt_ng' in this.printerSettings
)
}
get printerSupportsBedScrewsAdjust (): boolean {
Expand Down
10 changes: 8 additions & 2 deletions src/components/widgets/toolhead/ToolheadControlCircle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,10 @@ export default class ToolheadControlCircle extends Mixins(StateMixin, ToolheadMi
}
get printerSupportsZTiltAdjust (): boolean {
return 'z_tilt' in this.printerSettings
return (
'z_tilt' in this.printerSettings ||
'z_tilt_ng' in this.printerSettings
)
}
get printerSupportsLeveling (): boolean {
Expand Down Expand Up @@ -682,7 +685,10 @@ export default class ToolheadControlCircle extends Mixins(StateMixin, ToolheadMi
]
: this.printerSupportsZTiltAdjust
? [
!this.$store.state.printer.printer.z_tilt?.applied,
!(
this.$store.state.printer.printer.z_tilt?.applied ||
this.$store.state.printer.printer.z_tilt_ng?.applied
),
this.hasWait(this.$waits.onZTilt)
]
: []
Expand Down

0 comments on commit aa12c3f

Please sign in to comment.