Skip to content

Commit

Permalink
Merge pull request #179 from kengu/issue/178
Browse files Browse the repository at this point in the history
Ensure vendor table key is upper case
  • Loading branch information
guyluz11 authored Feb 12, 2024
2 parents 5de4ba0 + 4332cd4 commit 917ef41
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/src/device_info/vendor_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ class VendorTable {
if (arpData.notNullMacAddress) {
await createVendorTableMap();
final pattern = arpData.macAddress.contains(':') ? ':' : '-';
return _vendorTableMap[
arpData.macAddress.split(pattern).sublist(0, 3).join()] as Vendor?;
return _vendorTableMap[arpData.macAddress
.split(pattern)
.sublist(0, 3)
.join()
.toUpperCase()] as Vendor?;
}
}
return null;
Expand Down

0 comments on commit 917ef41

Please sign in to comment.