gmc-mh-1x-2x: Fixed 300 µA range scaling.

This commit is contained in:
Matthias Heidbrink 2014-03-08 10:40:38 +01:00
parent 0bc3ab92e6
commit c6c63b08af
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ static void decode_rs_16(uint8_t rs, struct dev_context *devc)
if (devc->mq == SR_MQ_VOLTAGE) /* V */ if (devc->mq == SR_MQ_VOLTAGE) /* V */
devc->scale *= 0.1; devc->scale *= 0.1;
else if (devc->mq == SR_MQ_CURRENT) /* 000.0 µA */ 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) { else if (devc->mq == SR_MQ_RESISTANCE) {
if (devc->buflen >= 10) { if (devc->buflen >= 10) {
/* °C with 10 byte msg type, otherwise GOhm. */ /* °C with 10 byte msg type, otherwise GOhm. */