diff --git a/Autocoders/Python/bin/tlm_packet_gen.py b/Autocoders/Python/bin/tlm_packet_gen.py index ec94a0f6b8..bc09901302 100755 --- a/Autocoders/Python/bin/tlm_packet_gen.py +++ b/Autocoders/Python/bin/tlm_packet_gen.py @@ -495,9 +495,10 @@ def process_serializable_files(self, serializable_file_list): % (member_type, serializable_type) ) sys.exit(-1) - serializable_size += type_size if member_array_size != None: - serializable_size *= member_array_size + serializable_size += int(member_array_size) * type_size + else: + serializable_size += type_size self.add_type_size(serializable_type, serializable_size) if self.verbose: print( diff --git a/Ref/TypeDemo/TypeDemo.fpp b/Ref/TypeDemo/TypeDemo.fpp index 77537b5288..9c04c70a31 100644 --- a/Ref/TypeDemo/TypeDemo.fpp +++ b/Ref/TypeDemo/TypeDemo.fpp @@ -31,6 +31,8 @@ module Ref { separateChoice: Choice @ A pair of choices choicePair: ChoicePair + @ An array of choices defined as member array + choiceAsMemberArray: [dimension] U8 } @ Set of floating points to emit