From 27d807448f354b9ac023ae09ce777f94e3ab0727 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 25 May 2017 13:46:18 +0200 Subject: [PATCH] Minor fixes to Projector G-code communication --- lib/Slic3r/GUI/Projector.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Slic3r/GUI/Projector.pm b/lib/Slic3r/GUI/Projector.pm index 8443000d0..deb81a43e 100644 --- a/lib/Slic3r/GUI/Projector.pm +++ b/lib/Slic3r/GUI/Projector.pm @@ -611,8 +611,12 @@ sub start_print { } Slic3r::debugf "connected to " . $self->config->serial_port . "\n"; + # TODO: this wait should be handled by GCodeSender + sleep 4; + # send custom start G-code $self->sender->send($_, 1) for grep !/^;/, split /\n/, $self->config->start_gcode; + $self->sender->("G90", 1); # set absolute positioning } $self->is_printing(1);