From: Matthias Heidbrink Date: Sat, 8 Mar 2014 09:40:38 +0000 (+0100) Subject: gmc-mh-1x-2x: Fixed 300 µA range scaling. X-Git-Tag: libsigrok-0.3.0~128 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c6c63b08af0f73b60de6726c9d5aea50d20d83d2;p=libsigrok.git gmc-mh-1x-2x: Fixed 300 µA range scaling. --- 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. */