summaryrefslogtreecommitdiff
path: root/lib/Kratos
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-09-06 14:49:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-09-06 14:49:20 +0200
commit56f9c1e6b2612a292b184faebac766660c5afa46 (patch)
tree22bb2e2d7a79ff38618a88090fa7c3223cbdd619 /lib/Kratos
parentf321c4f78317b142ccabbde92b781d150194bba7 (diff)
Add support for custom baud rates
Diffstat (limited to 'lib/Kratos')
-rw-r--r--lib/Kratos/DFADriver.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kratos/DFADriver.pm b/lib/Kratos/DFADriver.pm
index dfabef8..07f478c 100644
--- a/lib/Kratos/DFADriver.pm
+++ b/lib/Kratos/DFADriver.pm
@@ -1138,7 +1138,7 @@ sub launchpad_connect {
$self->{port} = Device::SerialPort->new( $self->{port_file} )
or croak("Error openig serial port $self->{port_file}");
- $self->{port}->baudrate(115200);
+ $self->{port}->baudrate($self->{baud_rate} // 115200);
$self->{port}->databits(8);
$self->{port}->parity('none');
$self->{port}->read_const_time(500);