add sound pressure level type
authorBert Vermeulen <bert@biot.com>
Wed, 31 Jul 2013 09:29:53 +0000 (11:29 +0200)
committerBert Vermeulen <bert@biot.com>
Wed, 31 Jul 2013 09:29:53 +0000 (11:29 +0200)
src/sigrok.c
src/types.db

index 7e2fa6c..001830d 100644 (file)
@@ -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";
 
index f1d30f0..173c641 100644 (file)
@@ -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