]> sigrok.org Git - libsigrokdecode.git/commit - decoders/uart/pd.py
uart: handle two stop bits configuration
authorGerhard Sittig <redacted>
Sat, 23 Apr 2022 17:20:42 +0000 (19:20 +0200)
committerGerhard Sittig <redacted>
Sat, 23 Apr 2022 18:02:36 +0000 (20:02 +0200)
commit1fc5b8a515eb06e759e109728b6f18ccdef0c686
tree64c764f5f427705151123267d4e304ca037fbd3d
parent42d4d65c3d34ae9bfa74c40fafd1ca657d05a91b
uart: handle two stop bits configuration

Sample and process multiple STOP bits as specified, add 2.0 to the list
of supported configurations. This implementation works as expected with
integer numbers of STOP bits (0, 1, 2). For half-bits the sample point
as well as the annotation position will be incorrect (as a result of an
internal implementation detail of the existing decoder which is not easy
to address).

This commit reduces the diff size, and remains backwards bug-compatible.
Fixing the bit boundaries in annotations including support for half-bits
is more involved, and remains for a later commit.
decoders/uart/pd.py