Skip to content

Commit

Permalink
Fix logging of timebase in seqgen (#162)
Browse files Browse the repository at this point in the history
* Fix logging of timebase in seqgen

* stringify ANY
  • Loading branch information
thomas-bc authored Feb 14, 2024
1 parent c5f997f commit 42660b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fprime_gds/common/encoders/seq_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def write(self, seq_cmds_list):
for cmd in seq_cmds_list:
sequence += self.__binaryCmdRecord(cmd)
size = len(sequence)
tb_txt = b"ANY" if self.__timebase == 0xFFFF else bytes(self.__timebase)
tb_txt = "ANY" if self.__timebase == 0xFFFF else hex(self.__timebase)

print("Sequence is %d bytes with timebase %s" % (size, tb_txt))
print(f"Sequence is {size} bytes with timebase {tb_txt}")

header = b""
header += U32Type(
Expand Down

0 comments on commit 42660b3

Please sign in to comment.