packet.type = SR_DF_ANALOG;
packet.payload = &analog;
analog.num_samples = samples;
- analog.mq = 0;
- analog.unit = 0;
+ analog.mq = SR_MQ_CARBON_MONOXIDE;
+ analog.unit = SR_UNIT_CONCENTRATION;
analog.mqflags = 0;
if (!(analog.data = g_try_malloc(sizeof(float) * samples)))
break;
/** Logarithmic representation of sound pressure relative to a
* reference value. */
SR_MQ_SOUND_PRESSURE_LEVEL,
+ SR_MQ_CARBON_MONOXIDE,
};
/** Values for sr_datafeed_analog.unit. */
SR_UNIT_UNITLESS,
/** Sound pressure level relative so 20 micropascals. */
SR_UNIT_DECIBEL_SPL,
+ SR_UNIT_CONCENTRATION,
};
/** Values for sr_datafeed_analog.flags. */