From 4c1607b6dd43842a83bb708f58690c5133776833 Mon Sep 17 00:00:00 2001 From: zngyanj Date: Thu, 18 May 2023 14:19:59 +0800 Subject: [PATCH 1/2] fix parse iad desc type --- scripts/util.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/util.lua b/scripts/util.lua index 6b57da3..23411ab 100644 --- a/scripts/util.lua +++ b/scripts/util.lua @@ -126,6 +126,8 @@ _G.get_descriptor_name = function(v) return "Function Descritpor" elseif v == macro_defs.HUB_DESC then return "HUB Descritpor" + elseif v == macro_defs.IAD_DESC then + return "IAD Descriptor" else return "Unknown Descritpor" end From 6bce4d16c9695422c80c2691f5d3ad9de93d107e Mon Sep 17 00:00:00 2001 From: zngyanj Date: Thu, 18 May 2023 14:20:20 +0800 Subject: [PATCH 2/2] fix descriptor name typo --- scripts/util.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/util.lua b/scripts/util.lua index 23411ab..fbcd4ab 100644 --- a/scripts/util.lua +++ b/scripts/util.lua @@ -121,15 +121,15 @@ _G.get_descriptor_name = function(v) if (v>=0) and (v < #STD_DESCRIPTOR_NAME) then return STD_DESCRIPTOR_NAME[v+1] .. " Descriptor" elseif v == macro_defs.REPORT_DESC then - return "Report Descritpor" + return "Report Descriptor" elseif v == macro_defs.FUNC_DESC then - return "Function Descritpor" + return "Function Descriptor" elseif v == macro_defs.HUB_DESC then return "HUB Descritpor" elseif v == macro_defs.IAD_DESC then return "IAD Descriptor" else - return "Unknown Descritpor" + return "Unknown Descriptor" end end