]> sigrok.org Git - libsigrokdecode.git/commit
caliper: slight refactoring of common pieces
authorGerhard Sittig <redacted>
Sat, 18 Jul 2020 16:40:50 +0000 (18:40 +0200)
committerGerhard Sittig <redacted>
Sat, 18 Jul 2020 18:36:15 +0000 (20:36 +0200)
commitb3fafeb4e192a1496fb6a36460ac940992d618a0
treea6d63f9c4a749ba17b27181b5c1d7c9fcde63966
parent4afcb4d0489705a3ca5f2590bd4645e51d5fb611
caliper: slight refactoring of common pieces

Merge .reset_data() into .reset() since no other location called it.
Move self.options[] lookup out of the loop, drop state from self when
it's strictly local to .decode(). Use a common annotation emission
routine, and vertically align text variants for zoom levels. This
further reduces the lengths of a few text lines.
decoders/caliper/pd.py