es51919: Fix a compiler warning.
src/lcr/es51919.c:538:73: warning: comparison of unsigned enum expression \ < 0 is always false [-Wtautological-compare] if ((analog->meaning->mq = parse_mq(pkt, is_secondary, pkt[2] & 0x80)) < 0)
This commit is contained in:
parent
5c436a3bad
commit
693c52482a
|
@ -535,7 +535,7 @@ static void parse_measurement(const uint8_t *pkt, float *floatval,
|
|||
analog->meaning->mqflags |= SR_MQFLAG_RELATIVE;
|
||||
}
|
||||
|
||||
if ((analog->meaning->mq = parse_mq(pkt, is_secondary, pkt[2] & 0x80)) < 0)
|
||||
if ((analog->meaning->mq = parse_mq(pkt, is_secondary, pkt[2] & 0x80)) == 0)
|
||||
return;
|
||||
|
||||
if ((buf[3] >> 3) >= ARRAY_SIZE(units)) {
|
||||
|
|
Loading…
Reference in New Issue