Acceleration control. #185

This commit is contained in:
Alessandro Ranellucci 2013-01-10 15:29:40 +01:00
parent 34e047205a
commit 32fd58d531
6 changed files with 44 additions and 10 deletions

View file

@ -323,9 +323,9 @@ sub reset_e {
sub set_acceleration {
my $self = shift;
my ($acceleration) = @_;
return "" unless $Slic3r::Config->acceleration;
return "" if !$acceleration;
return sprintf "M201 E%s%s\n",
return sprintf "M204 S%s%s\n",
$acceleration, ($Slic3r::Config->gcode_comments ? ' ; adjust acceleration' : '');
}