From 49d19023d9b7c2f085c5f8dfe331db919431610f Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 29 Jan 2012 13:49:53 +0100 Subject: [PATCH] specify port at command line --- qcdm.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcdm.pl b/qcdm.pl index 693e48d..03b20e2 100755 --- a/qcdm.pl +++ b/qcdm.pl @@ -53,7 +53,7 @@ sub crc { -my $device = $ENV{DEVICE} || '/dev/ttyUSB2'; # last device! control port! +my $device = shift @ARGV || $ENV{DEVICE} || '/dev/ttyUSB2'; # last device! control port! my $port = Device::SerialPort->new( $device ) || die "$device: $!"; $port->baudrate(115200) || die "fail $device baudrate"; -- 2.20.1