mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
New option to use G10/G11 for firmware-controlled retraction. #1494
This commit is contained in:
parent
0e3c9ebe52
commit
bcc061176c
5 changed files with 23 additions and 4 deletions
|
@ -86,6 +86,13 @@ our $Options = {
|
|||
type => 'bool',
|
||||
default => 0,
|
||||
},
|
||||
'use_firmware_retraction' => {
|
||||
label => 'Use firmware retraction',
|
||||
tooltip => 'This experimental setting uses G10 and G11 commands to have the firmware handle the retraction. This is only supported in recent Marlin.',
|
||||
cli => 'use-firmware-retraction!',
|
||||
type => 'bool',
|
||||
default => 0,
|
||||
},
|
||||
'extrusion_axis' => {
|
||||
label => 'Extrusion axis',
|
||||
tooltip => 'Use this option to set the axis letter associated to your printer\'s extruder (usually E but some printers use A).',
|
||||
|
@ -1391,6 +1398,12 @@ sub validate {
|
|||
die "Invalid value for --gcode-flavor\n"
|
||||
if !first { $_ eq $self->gcode_flavor } @{$Options->{gcode_flavor}{values}};
|
||||
|
||||
die "--use-firmware-retraction is only supported by Marlin firmware\n"
|
||||
if $self->use_firmware_retraction && $self->gcode_flavor ne 'reprap';
|
||||
|
||||
die "--use-firmware-retraction is not compatible with --wipe\n"
|
||||
if $self->use_firmware_retraction && first {$_} @{$self->wipe};
|
||||
|
||||
# --print-center
|
||||
die "Invalid value for --print-center\n"
|
||||
if !ref $self->print_center
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue