]> sigrok.org Git - libsigrok.git/commit - src/output/ascii.c
output: fixup trigger marker position in ascii/bits/hex output modules
authorGerhard Sittig <redacted>
Wed, 27 Jun 2018 21:57:45 +0000 (23:57 +0200)
committerUwe Hermann <redacted>
Sun, 15 Jul 2018 17:40:00 +0000 (19:40 +0200)
commit67b345b981a581731435f490dfbf7b13d8b1d5a9
tree77bf64ec770dc7596177fe7eea1dcffb91d72ffc
parent769561cbe9ff04e02502832cae676fc591716866
output: fixup trigger marker position in ascii/bits/hex output modules

Adjust the calculation of the '^' marker's position in T: lines of the
-O ascii/bits/hex output modules such that it matches the sample data
lines' layout. Add comments which discuss the motivation of the marker
position's calculation, which differs among each of those modules.

Strictly speaking -O bits was already correct. But I chose to adjust and
comment the logic such that multiple output modules follow a common
pattern. If performance is an issue, the bits.c change might be worth
reverting.

This commit fixes bug #1238.
src/output/ascii.c
src/output/bits.c
src/output/hex.c