case SR_UNIT_WATT_HOUR:
si_printf(value, out, "Wh");
break;
+ case SR_UNIT_METER_SECOND:
+ si_printf(value, out, "m/s");
+ break;
+ case SR_UNIT_HECTOPASCAL:
+ si_printf(value, out, "hPa");
+ break;
+ case SR_UNIT_HUMIDITY_293K:
+ si_printf(value, out, "%rF");
+ break;
default:
si_printf(value, out, "");
break;
g_string_append_c(out, '\n');
}
-static int receive(struct sr_output *o, const struct sr_dev_inst *sdi,
- const struct sr_datafeed_packet *packet, GString **out)
+static int receive(struct sr_output *o, const struct sr_datafeed_packet *packet,
+ GString **out)
{
const struct sr_datafeed_analog *analog;
struct sr_channel *ch;
const float *fdata;
int i, p;
- (void)sdi;
-
*out = NULL;
if (!o || !o->sdi)
return SR_ERR_ARG;