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:
Uwe Hermann 2016-08-29 21:10:13 +02:00
parent 5c436a3bad
commit 693c52482a
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {