From: Uwe Hermann Date: Mon, 30 Dec 2019 11:35:02 +0000 (+0100) Subject: uart: Fix incorrect stop bit annotation class. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b2ddb8ee4e3883ceabb9a612809b5d3561ab7181;p=libsigrokdecode.git uart: Fix incorrect stop bit annotation class. This fixes bug #1474. --- diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index 67f4c7e..2bae0dc 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -410,7 +410,7 @@ class Decoder(srd.Decoder): self.frame_valid[rxtx] = False self.putp(['STOPBIT', rxtx, self.stopbit1[rxtx]]) - self.putg([Ann.RX_PARITY_OK + rxtx, ['Stop bit', 'Stop', 'T']]) + self.putg([Ann.RX_STOP + rxtx, ['Stop bit', 'Stop', 'T']]) # Pass the complete UART frame to upper layers. es = self.samplenum + ceil(self.bit_width / 2.0)