gmc-mh-1x-2x: Fix compiler warning (clang).
CC libsigrok_hw_gmc_mh_1x_2x_la-protocol.lo protocol.c:133:32: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] } else if ((devc->scale1000 == 2)) { ~~~~~~~~~~~~~~~~^~~~ protocol.c:133:32: note: remove extraneous parentheses around the comparison to silence this warning } else if ((devc->scale1000 == 2)) { ~ ^ ~
This commit is contained in:
parent
35b904a792
commit
42f2f8a533
|
@ -130,7 +130,7 @@ static void decode_rs_16(uint8_t rs, struct dev_context *devc)
|
||||||
devc->mq = SR_MQ_TEMPERATURE;
|
devc->mq = SR_MQ_TEMPERATURE;
|
||||||
devc->unit = SR_UNIT_CELSIUS;
|
devc->unit = SR_UNIT_CELSIUS;
|
||||||
devc->scale *= 0.01;
|
devc->scale *= 0.01;
|
||||||
} else if ((devc->scale1000 == 2)) {
|
} else if (devc->scale1000 == 2) {
|
||||||
/* 16I Iso 500/1000V 3 GOhm */
|
/* 16I Iso 500/1000V 3 GOhm */
|
||||||
devc->scale *= 0.1;
|
devc->scale *= 0.1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue