summaryrefslogtreecommitdiff
path: root/lib/Kratos
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-09-06 14:48:36 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-09-06 14:48:36 +0200
commitf321c4f78317b142ccabbde92b781d150194bba7 (patch)
treee242e69373ad61f83a8c61c8dd7fd83acae52c5f /lib/Kratos
parentf9db277a72fece83bd9fed77c793a73b7e3d8360 (diff)
Support new UART "endl" implementation in Kratos
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 ade6067..dfabef8 100644
--- a/lib/Kratos/DFADriver.pm
+++ b/lib/Kratos/DFADriver.pm
@@ -1276,7 +1276,7 @@ sub launchpad_log_read {
croak("Serial port was disconnected");
}
if ( $count > 0 ) {
- my @lines = split( /\n\r/, $chars );
+ my @lines = split( /\n\r|\r\n/, $chars );
for my $line (@lines) {
$self->launchpad_parse_line($line);
}