From a186ae0e1c37db7baa356d99278576d8176f7c1c Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Wed, 31 Jul 2013 11:29:53 +0200 Subject: [PATCH] add sound pressure level type --- src/sigrok.c | 2 ++ src/types.db | 1 + 2 files changed, 3 insertions(+) diff --git a/src/sigrok.c b/src/sigrok.c index 7e2fa6c1..001830d4 100644 --- a/src/sigrok.c +++ b/src/sigrok.c @@ -142,6 +142,8 @@ static char *sigrok_value_type(const struct sr_datafeed_analog *analog) s = "temperature"; else if (analog->mq == SR_MQ_RELATIVE_HUMIDITY) s = "humidity"; + else if (analog->mq == SR_MQ_SOUND_PRESSURE_LEVEL) + s = "spl"; else s = "gauge"; diff --git a/src/types.db b/src/types.db index f1d30f0d..173c641e 100644 --- a/src/types.db +++ b/src/types.db @@ -160,6 +160,7 @@ signal_quality value:GAUGE:0:U snr value:GAUGE:0:U spam_check value:GAUGE:0:U spam_score value:GAUGE:U:U +spl value:GAUGE:U:U swap_io value:DERIVE:0:U swap value:GAUGE:0:1099511627776 tcp_connections value:GAUGE:0:4294967295 -- 2.30.2