From: Lars-Peter Clausen Date: Thu, 5 Jul 2012 19:15:10 +0000 (+0200) Subject: cli: Use sr_session_stop() instead of sr_session_halt() X-Git-Tag: sigrok-cli-0.4.0~98 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c6ca71bb7e80b50e1fc4f0424ddee15ea8dc5633;p=sigrok-cli.git cli: Use sr_session_stop() instead of sr_session_halt() Use sr_session_stop() instead of the deprecated sr_session_halt(). Signed-off-by: Lars-Peter Clausen --- diff --git a/sigrok-cli.c b/sigrok-cli.c index bce88e4..3a460bf 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -485,7 +485,7 @@ static void datafeed_in(struct sr_dev *dev, struct sr_datafeed_packet *packet) if (opt_continuous) g_warning("Device stopped after %" PRIu64 " samples.", received_samples); - sr_session_halt(); + sr_session_stop(); if (outfile && outfile != stdout) fclose(outfile); g_free(o); @@ -576,7 +576,7 @@ static void datafeed_in(struct sr_dev *dev, struct sr_datafeed_packet *packet) if (opt_pds) { if (srd_session_send(received_samples, (uint8_t*)filter_out, filter_out_len) != SRD_OK) - sr_session_halt(); + sr_session_stop(); } else { output_len = 0; if (o->format->data && packet->type == o->format->df_type)