From: Gerhard Sittig Date: Wed, 15 Mar 2023 17:52:32 +0000 (+0100) Subject: rdtech-um: increase digits count for models with higher resolution X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=238a6ef234b7c63533085b241aa52392a377552c;p=libsigrok.git rdtech-um: increase digits count for models with higher resolution The table of UM25C channels differs from other models. The V and I channels provide a higher resolution, their scaling factors differ. Update the number of significant digits, too, which went unnoticed. --- diff --git a/src/hardware/rdtech-um/protocol.c b/src/hardware/rdtech-um/protocol.c index 04de7687..dd254362 100644 --- a/src/hardware/rdtech-um/protocol.c +++ b/src/hardware/rdtech-um/protocol.c @@ -46,8 +46,8 @@ static const struct binary_analog_channel rdtech_default_channels[] = { }; static const struct binary_analog_channel rdtech_um25c_channels[] = { - { "V", { 2, BVT_BE_UINT16, 0.001, }, 2, SR_MQ_VOLTAGE, SR_UNIT_VOLT }, - { "I", { 4, BVT_BE_UINT16, 0.0001, }, 3, SR_MQ_CURRENT, SR_UNIT_AMPERE }, + { "V", { 2, BVT_BE_UINT16, 0.001, }, 3, SR_MQ_VOLTAGE, SR_UNIT_VOLT }, + { "I", { 4, BVT_BE_UINT16, 0.0001, }, 4, SR_MQ_CURRENT, SR_UNIT_AMPERE }, { "D+", { 96, BVT_BE_UINT16, 0.01, }, 2, SR_MQ_VOLTAGE, SR_UNIT_VOLT }, { "D-", { 98, BVT_BE_UINT16, 0.01, }, 2, SR_MQ_VOLTAGE, SR_UNIT_VOLT }, { "T", { 10, BVT_BE_UINT16, 1.0, }, 0, SR_MQ_TEMPERATURE, SR_UNIT_CELSIUS },