]> sigrok.org Git - pulseview.git/commit
Make the analog value voltage display more sane
authorSoeren Apel <redacted>
Thu, 21 May 2020 21:13:01 +0000 (23:13 +0200)
committerSoeren Apel <redacted>
Fri, 22 May 2020 13:21:29 +0000 (15:21 +0200)
commit0efa7f0cc59eab39dccce698d8fb6675feeb3e73
tree3685c8b3e17b3d1490da283e0ccfbbe14a525fec
parent8845be3c9c7d5aca02fb2efc4038f4735a5242d6
Make the analog value voltage display more sane

We do this by choosing the prefix (kV, V, mV) based on the min/max value
of the signal, not the value at the cursor position.

That way, we won't have the situation where values are printed as e.g.
"400 mV" when the values are usually shown as "1.600 V".
pv/util.cpp
pv/util.hpp
pv/views/trace/analogsignal.cpp
pv/views/trace/analogsignal.hpp
pv/views/trace/logicsignal.hpp