Merge pull request #289 from jwakely/hex-device-id

Treat device ID values as hex
pull/295/head
Jesse Vincent 7 years ago committed by GitHub
commit 413e09c217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,8 +17,8 @@ for my $path (@paths) {
my ( $key, $val ) = split( /=/, $line, 2 );
$devices{$path}{$key} = $val;
}
if ( ( $devices{$path}{'ID_VENDOR_ID'} == $vid )
&& ( $devices{$path}{'ID_MODEL_ID'} == $pid ) )
if ( ( hex $devices{$path}{'ID_VENDOR_ID'} == hex $vid )
&& ( hex $devices{$path}{'ID_MODEL_ID'} == hex $pid ) )
{
if ( $devices{$path}{'ID_MM_CANDIDATE'} ) {

Loading…
Cancel
Save