diff options
author | Bjørn Mork <bjorn@mork.no> | 2017-12-18 14:20:39 +0100 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2017-12-18 14:20:39 +0100 |
commit | 339c469b21feb6ecbb41571f897c5bedf0b6278a (patch) | |
tree | f099a91b189fe9fe3015dcdc4159986b249814ef | |
parent | 9eecfce4eb52ae4176ae73136cf1e9e37cd67726 (diff) |
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rwxr-xr-x | convert-modeswitch.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/convert-modeswitch.pl b/convert-modeswitch.pl index 4ccfed6..b1530bd 100755 --- a/convert-modeswitch.pl +++ b/convert-modeswitch.pl @@ -48,7 +48,7 @@ sub add_mode { sub add_modeval { return unless ($_[1] && $_[1] =~ /^\d+$/); - $_[0]->{"Modeval"} = $_[1]; + $_[0]->{"ModeValue"} = $_[1]; } my $hex_option = [ undef, \&add_hex ]; @@ -218,7 +218,7 @@ foreach my $devid (sort keys %devices) { dev_opt($cur->{TargetClass}, "t_class", "int", \$sep); dev_opt($cur->{DetachStorageOnly}, "detach_storage", "bool", \$sep); dev_opt($cur->{Mode}, "mode", "string", \$sep); - dev_opt($cur->{Modeval}, "modeval", "string", \$sep); + dev_opt($cur->{ModeValue}, "modeval", "int", \$sep); dev_opt($cur->{NoDriverLoading}, "no_driver", "bool", \$sep); dev_opt($cur->{MessageEndpoint}, "msg_endpoint", "int", \$sep); my $msg = [ |