find-device-port-linux-udev: ensure called with correct args

The VID and PID must be provided.
pull/304/head
Adam Spiers 7 years ago
parent 084679d2d1
commit dd1aca0f13

@ -2,6 +2,8 @@
use warnings; use warnings;
use strict; use strict;
die "Usage: $0 VID PID\n" unless @ARGV == 2;
my $vid = shift; my $vid = shift;
my $pid = shift; my $pid = shift;
my $prefix = '/dev/serial/by-id/'; my $prefix = '/dev/serial/by-id/';

Loading…
Cancel
Save