diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2022-04-22 22:45:06 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2022-04-23 20:06:30 +0200 |
commit | e556e1168af7027df08622ecfe11309811249e81 (patch) | |
tree | 71fd8f18ba80740a526f863a391236388b56c020 /srd.c | |
parent | 1fc5b8a515eb06e759e109728b6f18ccdef0c686 (diff) | |
download | libsigrokdecode-e556e1168af7027df08622ecfe11309811249e81.tar.gz libsigrokdecode-e556e1168af7027df08622ecfe11309811249e81.zip |
uart: don't re-calculate in-frame bit position, just count the bits
The .get_wait_cond() routine kept re-calculating the current bit index
in the currently inspected UART frame. Just count the bits instead as
they are seen/taken. This eliminates redundant complex logic which had
hard to track down issues in past revisions. Increases robustness, and
improves maintainability.
Diffstat (limited to 'srd.c')
0 files changed, 0 insertions, 0 deletions