From 7b5158f5f2cea39e88cb7a97c372c2166c76a7d9 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Thu, 30 Mar 2017 00:21:32 -0500 Subject: [PATCH] Permit firmware retraction when firmware is Repetier (repetier-firmware supports it). Fixes #3821 --- lib/Slic3r/Config.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index c315f9b4e..53c0ceba5 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -254,8 +254,11 @@ 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' && $self->gcode_flavor ne 'machinekit'; + die "--use-firmware-retraction is only supported by Marlin, Smoothie, Repetier and Machinekit firmware\n" + if $self->use_firmware_retraction && $self->gcode_flavor ne 'smoothie' + && $self->gcode_flavor ne 'reprap' + && $self->gcode_flavor ne 'machinekit' + && $self->gcode_flavor ne 'repetier'; die "--use-firmware-retraction is not compatible with --wipe\n" if $self->use_firmware_retraction && first {$_} @{$self->wipe};