Skip to content

Commit

Permalink
Allow globs in serial port names.
Browse files Browse the repository at this point in the history
This makes port names like /dev/tty.usbserial-A123BCDE, common on MacOS,
easier to configure and more robust over system and hardware changes.
  • Loading branch information
ebardsley committed Jun 29, 2021
1 parent df14d29 commit 075c890
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Insteon_PLM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ sub serial_startup {
if ( !defined($port) ) {
main::print_log( "WARN: " . $instance . "_serial_port missing from INI params!" );
}
$port = glob($port);
my $speed = 19200;

&::print_log("[Insteon_PLM] serial:$port:$speed");
Expand Down

0 comments on commit 075c890

Please sign in to comment.