From 40b1e6b275f31c520a67420a1930e23e21246827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20R=C3=B8nningstad?= Date: Wed, 21 Aug 2024 13:32:21 +0200 Subject: [PATCH] work --- zcbor/zcbor.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zcbor/zcbor.py b/zcbor/zcbor.py index e807840f..66523238 100755 --- a/zcbor/zcbor.py +++ b/zcbor/zcbor.py @@ -1076,10 +1076,10 @@ def skip_condition(self): return True if self.type in ["LIST", "MAP", "GROUP"]: return not self.repeated_multi_var_condition() - if self.type == "OTHER": - return ((not self.repeated_multi_var_condition()) - and (not self.multi_var_condition()) - and (self.single_func_impl_condition() or self in self.my_types.values())) + # if self.type == "OTHER": + # return ((not self.repeated_multi_var_condition()) + # and (not self.multi_var_condition()) + # and (self.single_func_impl_condition() or self in self.my_types.values())) return False def set_skipped(self, skipped): @@ -2194,11 +2194,11 @@ def type_def(self): if self.repeated_type_def_condition(): type_def_list = self.single_var_type(full=False) if type_def_list: - ret_val.extend([(self.single_var_type(full=False), self.repeated_type_name())]) + ret_val.extend([(type_def_list, self.repeated_type_name())]) if self.type_def_condition(): type_def_list = self.single_var_type() if type_def_list: - ret_val.extend([(self.single_var_type(), self.type_name())]) + ret_val.extend([(type_def_list, self.type_name())]) return ret_val def type_def_bits(self):