mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 23:38:59 +08:00
Update Slic3r::GCode::Sender API
This commit is contained in:
parent
42e9ec90be
commit
d77469c658
@ -14,7 +14,8 @@ use Slic3r;
|
||||
die "Usage: send-gcode.pl SERIALPORT BAUDRATE GCODE_FILE\n"
|
||||
if @ARGV != 3;
|
||||
|
||||
my $serial = Slic3r::GCode::Sender->new($ARGV[0], $ARGV[1]);
|
||||
my $serial = Slic3r::GCode::Sender->new;
|
||||
$serial->connect($ARGV[0], $ARGV[1]);
|
||||
1 until $serial->is_connected;
|
||||
print "Connected to printer\n";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user