Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update demo to show member array support gds #2517

Merged
merged 5 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Autocoders/Python/bin/tlm_packet_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions Ref/TypeDemo/TypeDemo.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading