X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fcolead-slm%2Fprotocol.c;h=2f6957abe2d0170770eb86694812abcc566090f2;hb=6b7e644e5c5ca8fd501303a812293a00d830cd32;hp=6b30459c361809dc1accb8fcd869dca554aac31e;hpb=a8372c3ed9155ba7ccc60f483a144a1d8b864c66;p=libsigrok.git diff --git a/src/hardware/colead-slm/protocol.c b/src/hardware/colead-slm/protocol.c index 6b30459c..2f6957ab 100644 --- a/src/hardware/colead-slm/protocol.c +++ b/src/hardware/colead-slm/protocol.c @@ -74,7 +74,7 @@ static void process_packet(const struct sr_dev_inst *sdi) } fvalue /= 10; - sr_analog_init(&analog, &encoding, &meaning, &spec, 0); + sr_analog_init(&analog, &encoding, &meaning, &spec, 1); analog.meaning->mq = SR_MQ_SOUND_PRESSURE_LEVEL; analog.meaning->unit = SR_UNIT_DECIBEL_SPL; analog.meaning->channels = sdi->channels; @@ -138,7 +138,7 @@ static void process_packet(const struct sr_dev_inst *sdi) case 0x9: /* Mean over a time period between 11 seconds and 24 hours. * Which is so silly that there's no point in expressing - * either this or the previous case. */ + * either this or the previous case. */ analog.meaning->mqflags |= SR_MQFLAG_SPL_LAT \ | SR_MQFLAG_SPL_FREQ_WEIGHT_A \ | SR_MQFLAG_SPL_TIME_WEIGHT_F;