diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-10-16 17:58:28 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-10-16 17:58:28 +0200 |
commit | 0c7d5a56449babeb84013118935c0dacecdadd70 (patch) | |
tree | 20830bf2482fb1c39ed670f98a7fe879bef6123f | |
parent | 7cf698c5475ac6948d7a9d5c2a6e4ec9cb878d84 (diff) | |
download | libsigrokdecode-0c7d5a56449babeb84013118935c0dacecdadd70.tar.gz libsigrokdecode-0c7d5a56449babeb84013118935c0dacecdadd70.zip |
uart: Fix code comment.
-rw-r--r-- | decoders/uart/pd.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index c342243..d59c6c3 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -28,9 +28,10 @@ Packet: This is the list of <ptype>s and their respective <pdata> values: - 'STARTBIT': The data is the (integer) value of the start bit (0/1). - - ('DATA', 'DATABITS'): DATA is the (integer) value of the UART data. Valid - values range from 0 to 512 (as the data can be up to 9 bits in size). - 'DATABITS' is the list of individual data bits and their ss/es numbers. + - 'DATA': This is always a tuple containing two items: + - 1st item: the (integer) value of the UART data. Valid values + range from 0 to 512 (as the data can be up to 9 bits in size). + - 2nd item: the list of individual data bits and their ss/es numbers. - 'PARITYBIT': The data is the (integer) value of the parity bit (0/1). - 'STOPBIT': The data is the (integer) value of the stop bit (0 or 1). - 'INVALID STARTBIT': The data is the (integer) value of the start bit (0/1). |