From: Aurelien Jacobs Date: Thu, 4 Sep 2014 20:06:54 +0000 (+0200) Subject: brymen-bm86x: Add current loop sensor support. X-Git-Tag: libsigrok-0.4.0~1041 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=af1e487e3f8268bd3cecf778a26fa391ea2d1a31;p=libsigrok.git brymen-bm86x: Add current loop sensor support. --- diff --git a/src/hardware/brymen-bm86x/protocol.c b/src/hardware/brymen-bm86x/protocol.c index b8e16a3f..d300149d 100644 --- a/src/hardware/brymen-bm86x/protocol.c +++ b/src/hardware/brymen-bm86x/protocol.c @@ -161,6 +161,9 @@ static void brymen_bm86x_parse(unsigned char *buf, float *floatval, } else if (buf[9] & 0x04) { analog[1].mq = SR_MQ_CURRENT; analog[1].unit = SR_UNIT_AMPERE; + } else if (buf[9] & 0x08) { + analog[1].mq = SR_MQ_CURRENT; + analog[1].unit = SR_UNIT_PERCENTAGE; } else if (buf[14] & 0x04) { analog[1].mq = SR_MQ_FREQUENCY; analog[1].unit = SR_UNIT_HERTZ;