Skip to content
Permalink
Browse files

fixes

  • Loading branch information...
rkoeppl committed Jun 26, 2016
1 parent 4348687 commit 5be5730cd98e6b09d9c15cdef6252682c9d33028
Showing with 8 additions and 8 deletions.
  1. +8 −8 modules/printengine.pl
@@ -234,7 +234,13 @@
rmtree([ "$temporary_folder"]) or die "$!: for directory $temporary_folder\n";
unless (-d $temporary_folder) {
mkpath($temporary_folder) or die "Couldn't mkdir $temporary_folder: $!";}

my $port = Device::SerialPort->new($arduinotty);

# 19200, 81N on the USB ftdi driver
$port->baudrate($arduinottybaudrate);
$port->databits(8);
$port->parity("none");
$port->stopbits(1);

my $zip = Archive::Zip->new($picturesarchive);
$zip->extractTree('',$temporary_folder);
@@ -325,13 +331,7 @@ sub send_commands{
my @command_list = @_;

#Open port
my $port = Device::SerialPort->new($arduinotty);

# 19200, 81N on the USB ftdi driver
$port->baudrate($arduinottybaudrate);
$port->databits(8);
$port->parity("none");
$port->stopbits(1);


while (1) {
# Poll to see if any data is coming in

0 comments on commit 5be5730

Please sign in to comment.
You can’t perform that action at this time.