From 2464704d3a42e09dfb39dd471e22cdb4339e8512 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 24 Mar 2023 16:58:26 -0400 Subject: [PATCH] Mark bitmaps as ... well, bitmaps (#25827) Co-authored-by: Andrei Litvin --- scripts/py_matter_idl/matter_idl/generators/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/types.py b/scripts/py_matter_idl/matter_idl/generators/types.py index 87c24465237b33..19fa8bf35fd770 100644 --- a/scripts/py_matter_idl/matter_idl/generators/types.py +++ b/scripts/py_matter_idl/matter_idl/generators/types.py @@ -379,7 +379,7 @@ def ParseDataType(data_type: DataType, lookup: TypeLookupContext) -> Union[Basic elif lowercase_name in ['enum8', 'enum16', 'enum32']: return IdlEnumType(idl_name=lowercase_name, base_type=__CHIP_SIZED_TYPES__[lowercase_name]) elif lowercase_name in ['bitmap8', 'bitmap16', 'bitmap24', 'bitmap32']: - return IdlEnumType(idl_name=lowercase_name, base_type=__CHIP_SIZED_TYPES__[lowercase_name]) + return IdlBitmapType(idl_name=lowercase_name, base_type=__CHIP_SIZED_TYPES__[lowercase_name]) int_type = __CHIP_SIZED_TYPES__.get(lowercase_name, None) if int_type is not None: