mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-07 19:24:01 +02:00
brmd: Allow device filename override on commandline
This commit is contained in:
parent
00e2684e63
commit
718c94886d
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ use HTTP::Status qw/RC_OK/;
|
|||
use CGI;
|
||||
|
||||
our $channel = "#brmlab";
|
||||
our $device = "/dev/ttyUSB0";
|
||||
our $device = $ARGV[0]; $device ||= "/dev/ttyUSB0";
|
||||
our ($status, $record, $topic) = (0, 0, 'BRMLAB OPEN');
|
||||
|
||||
my $serial;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue