From: Uwe Hermann Date: Thu, 12 Sep 2013 06:20:03 +0000 (+0200) Subject: uart: Use T for stop bit, P for parity bit. X-Git-Tag: libsigrokdecode-0.3.0~326 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9f18eb6c7baad207a15c6efcfedf751838b8000e;p=libsigrokdecode.git uart: Use T for stop bit, P for parity bit. The short(est) annotations for "Stop bit" and "Parity bit" have both been "P" until now, which is confusing for users (on certain zoom levels in GUIs). Use "T" for stop bits now instead. --- diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index c0968fb..df4bba0 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -254,7 +254,7 @@ class Decoder(srd.Decoder): self.state[rxtx] = 'WAIT FOR START BIT' self.putp(['STOPBIT', rxtx, self.stopbit1[rxtx]]) - self.putg([ANN_ASCII, ['Stop bit', 'Stop', 'P']]) + self.putg([ANN_ASCII, ['Stop bit', 'Stop', 'T']]) def decode(self, ss, es, data): # TODO: Either RX or TX could be omitted (optional probe).