]> sigrok.org Git - libsigrok.git/commit - include/libsigrok/libsigrok.h
analog: add support for negative number of digits
authorAurelien Jacobs <redacted>
Mon, 20 Jun 2016 20:58:12 +0000 (22:58 +0200)
committerAurelien Jacobs <redacted>
Sun, 26 Jun 2016 18:32:56 +0000 (20:32 +0200)
commit28c95cc6c45ede9ec9d184d606bfc16505834429
treee6abfada79d43446c896e525fe94825f85bf2a86
parent4d6d660b8306abdbc77a47e48d7f527234ce9a4f
analog: add support for negative number of digits

When a meter display 105.2 kΩ, libsigrok will return 105200 Ω
but it is really valuable to know that the last 2 digits are not
significant, so encoding.digits should be set to -2.
This would allow a sigrok client to display 105200 as 105.2 k
instead of 105.200 k.
include/libsigrok/libsigrok.h
src/output/analog.c