Minor fixes to Projector G-code communication

This commit is contained in:
Alessandro Ranellucci 2017-05-25 13:46:18 +02:00 committed by GitHub
parent 60d0b57443
commit 27d807448f

View File

@ -611,8 +611,12 @@ sub start_print {
} }
Slic3r::debugf "connected to " . $self->config->serial_port . "\n"; Slic3r::debugf "connected to " . $self->config->serial_port . "\n";
# TODO: this wait should be handled by GCodeSender
sleep 4;
# send custom start G-code # send custom start G-code
$self->sender->send($_, 1) for grep !/^;/, split /\n/, $self->config->start_gcode; $self->sender->send($_, 1) for grep !/^;/, split /\n/, $self->config->start_gcode;
$self->sender->("G90", 1); # set absolute positioning
} }
$self->is_printing(1); $self->is_printing(1);