summaryrefslogtreecommitdiff
path: root/bin
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 /bin
parentf321c4f78317b142ccabbde92b781d150194bba7 (diff)
Add support for custom baud rates
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dfatool2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/dfatool b/bin/dfatool
index 58f59d6..ce9224e 100755
--- a/bin/dfatool
+++ b/bin/dfatool
@@ -16,6 +16,7 @@ my %opt;
GetOptions(
\%opt,
qw{
+ baudrate=i
class=s
exclude-states=s@
ignore-nested-calls
@@ -51,6 +52,7 @@ if ( @ARGV < 2 ) {
my ( $command, $model_file, @data_files ) = @ARGV;
my $driver = Kratos::DFADriver->new(
+ baud_rate => $opt{baudrate} // 115200,
cache => $opt{'no-cache'} ? 0 : 1,
class_name => $opt{class},
data_file => $data_files[0],