Skip to content

Commit 5bbc915

Browse files
Split annotation based on value type
1 parent a9d2fe1 commit 5bbc915

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ def handle_bits(self, samplenum):
106106

107107
# Split annotation based on value type
108108
if dshot_value < 48:
109+
# Command
109110
self.put(self.ss_packet, crc_startsample, self.out_ann,
110111
[1, ['%04d' % dshot_value]])
111112
else:
113+
# Throttle
112114
self.put(self.ss_packet, crc_startsample, self.out_ann,
113115
[2, ['%04d' % dshot_value]])
114116

0 commit comments

Comments
 (0)