From a2ef232f995afb3cc9485f71a4cff93ef5013cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenneth=20Gulbrands=C3=B8y?= Date: Fri, 9 Feb 2024 17:15:40 +0100 Subject: [PATCH 1/2] Fixed issue #178 --- lib/src/device_info/vendor_table.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/src/device_info/vendor_table.dart b/lib/src/device_info/vendor_table.dart index e908e54..6820b57 100644 --- a/lib/src/device_info/vendor_table.dart +++ b/lib/src/device_info/vendor_table.dart @@ -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; From 4332cd439680dd5124d722387cecbaed37035905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenneth=20Gulbrands=C3=B8y?= Date: Fri, 9 Feb 2024 17:36:55 +0100 Subject: [PATCH 2/2] Removed semicolon from join and added upper case --- lib/src/device_info/vendor_table.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/device_info/vendor_table.dart b/lib/src/device_info/vendor_table.dart index 6820b57..3cffff5 100644 --- a/lib/src/device_info/vendor_table.dart +++ b/lib/src/device_info/vendor_table.dart @@ -19,7 +19,7 @@ class VendorTable { return _vendorTableMap[arpData.macAddress .split(pattern) .sublist(0, 3) - .join(':') + .join() .toUpperCase()] as Vendor?; } }