From: Matthias Heidbrink Date: Sat, 8 Mar 2014 09:50:21 +0000 (+0100) Subject: gmc-mh-1x-2x: Cosmetic fixes for Metrahit 25S. X-Git-Tag: libsigrok-0.3.0~127 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d1d3b7dff9881acfce0923be9e66b3bddaa48221;p=libsigrok.git gmc-mh-1x-2x: Cosmetic fixes for Metrahit 25S. --- diff --git a/hardware/gmc-mh-1x-2x/protocol.c b/hardware/gmc-mh-1x-2x/protocol.c index a5d7784b..dd388939 100644 --- a/hardware/gmc-mh-1x-2x/protocol.c +++ b/hardware/gmc-mh-1x-2x/protocol.c @@ -480,8 +480,19 @@ static void decode_ctmv_2x(uint8_t ctmv, struct dev_context *devc) devc->unit = SR_UNIT_UNITLESS; devc->mqflags |= SR_MQFLAG_AC; break; + case 0x1f: /* 11111 Undocumented: 25S in stopwatch mode. + The value is voltage, not time, so treat it such. */ + devc->mq = SR_MQ_VOLTAGE; + devc->unit = SR_UNIT_VOLT; + devc->mqflags |= SR_MQFLAG_DC; + break; + case 0x20: /* 100000 Undocumented: 25S in event count mode. + Value is 0 anyway. */ + devc->mq = SR_MQ_VOLTAGE; + devc->unit = SR_UNIT_UNITLESS; + break; default: - sr_err("decode_ctmv_2x(%d, ...): Unknown ctmv!"); + sr_err("decode_ctmv_2x(%d, ...): Unknown ctmv!", ctmv); break; } }