]> sigrok.org Git - libsigrok.git/commitdiff
gmc-mh-1x-2x: Fixed 300 µA range scaling.
authorMatthias Heidbrink <redacted>
Sat, 8 Mar 2014 09:40:38 +0000 (10:40 +0100)
committerMatthias Heidbrink <redacted>
Sat, 8 Mar 2014 09:40:38 +0000 (10:40 +0100)
hardware/gmc-mh-1x-2x/protocol.c

index ceb138e965c0936467e10f8f9390a3abaeff4f61..a5d7784b1a2a037c0ce81b57c5516f0c9d2d7544 100644 (file)
@@ -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. */