static int init(struct sr_output *o)
{
struct context *ctx;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
sr_spew("Initializing output module.");
si_printf(value, out, "Hz");
break;
case SR_UNIT_PERCENTAGE:
- g_string_append_printf(out, "%f%%", value);
+ g_string_append_printf(out, "%f %%", value);
break;
case SR_UNIT_BOOLEAN:
if (value > 0)
const struct sr_datafeed_packet *packet, GString **out)
{
const struct sr_datafeed_analog *analog;
- struct sr_probe *probe;
+ struct sr_channel *probe;
GSList *l;
const float *fdata;
int i, p;