summaryrefslogtreecommitdiff
path: root/decoders/common/sdcard/mod.py
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2022-04-22 22:45:06 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2022-04-23 20:06:30 +0200
commite556e1168af7027df08622ecfe11309811249e81 (patch)
tree71fd8f18ba80740a526f863a391236388b56c020 /decoders/common/sdcard/mod.py
parent1fc5b8a515eb06e759e109728b6f18ccdef0c686 (diff)
downloadlibsigrokdecode-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 'decoders/common/sdcard/mod.py')
0 files changed, 0 insertions, 0 deletions