Migrate code to index based device type

This commit is contained in:
emanuele-f 2017-08-16 16:45:41 +02:00
parent 29a5a7e013
commit 08ec407fbb
11 changed files with 88 additions and 63 deletions

View file

@ -31,10 +31,6 @@ function mac2record(mac)
record["column_mac"] = mac2link(mac)
if mac["device_type"] ~= "unknown" then
record["column_mac"] = record["column_mac"] .. " " .. discover.devtype2icon(mac["device_type"])
end
local manufacturer = get_manufacturer_mac(mac["mac"])
if(manufacturer == nil) then manufacturer = "" end
record["column_manufacturer"] = manufacturer