Skip to content
Open
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
2 changes: 2 additions & 0 deletions decoders/uart/pd.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
value of the UART data, and a boolean which reflects the validity of the
UART frame.
- 'IDLE': The data is always 0.
- 'PACKET': data is entire packet, as array of integer values

The <rxtx> field is 0 for RX packets, 1 for TX packets.
'''
Expand Down Expand Up @@ -307,6 +308,7 @@ def handle_packet(self, rxtx):
if self.options['format'] != 'ascii' and s[-1] == ' ':
s = s[:-1] # Drop trailing space.
self.putx_packet(rxtx, [Ann.RX_PACKET + rxtx, [s]])
self.put(self.ss_packet[rxtx], self.es_packet[rxtx], self.out_python, ('PACKET', rxtx, self.packet_cache[rxtx]))
self.packet_cache[rxtx] = []

def get_data_bits(self, rxtx, signal):
Expand Down