Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindronningstad committed Aug 21, 2024
1 parent 6b78705 commit 40b1e6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zcbor/zcbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 40b1e6b

Please sign in to comment.