#include <errno.h>
#include <string.h>
-
static void process_packet(const struct sr_dev_inst *sdi)
{
struct dev_context *devc;
memset(&analog, 0, sizeof(struct sr_datafeed_analog));
analog.mq = SR_MQ_SOUND_PRESSURE_LEVEL;
analog.unit = SR_UNIT_DECIBEL_SPL;
- analog.probes = sdi->probes;
+ analog.channels = sdi->channels;
analog.num_samples = 1;
analog.data = &fvalue;
return TRUE;
}
-