From c6c63b08af0f73b60de6726c9d5aea50d20d83d2 Mon Sep 17 00:00:00 2001 From: Matthias Heidbrink Date: Sat, 8 Mar 2014 10:40:38 +0100 Subject: [PATCH] =?UTF-8?q?gmc-mh-1x-2x:=20Fixed=20300=20=C2=B5A=20range?= =?UTF-8?q?=20scaling.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hardware/gmc-mh-1x-2x/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/gmc-mh-1x-2x/protocol.c b/hardware/gmc-mh-1x-2x/protocol.c index ceb138e9..a5d7784b 100644 --- a/hardware/gmc-mh-1x-2x/protocol.c +++ b/hardware/gmc-mh-1x-2x/protocol.c @@ -132,7 +132,7 @@ static void decode_rs_16(uint8_t rs, struct dev_context *devc) if (devc->mq == SR_MQ_VOLTAGE) /* V */ devc->scale *= 0.1; else if (devc->mq == SR_MQ_CURRENT) /* 000.0 µA */ - devc->scale *= 0.0000001; /* Untested! */ + devc->scale *= 0.00001; else if (devc->mq == SR_MQ_RESISTANCE) { if (devc->buflen >= 10) { /* °C with 10 byte msg type, otherwise GOhm. */