X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fcsv.c;h=ecbf562de27af1c33ab912023c94b571ed667ba7;hb=739a1ec4f8714ee77f19c393345a67d321982c11;hp=36cf2e86931b6cb7cd1552eb42716f4191dec6e3;hpb=c1aae90038456a61d0f9313d34e6107c3440d3e7;p=libsigrok.git diff --git a/src/output/csv.c b/src/output/csv.c index 36cf2e86..ecbf562d 100644 --- a/src/output/csv.c +++ b/src/output/csv.c @@ -18,10 +18,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include -#include "config.h" /* Needed for PACKAGE_STRING and others. */ #include #include "libsigrok-internal.h" @@ -118,8 +118,8 @@ static GString *gen_header(const struct sr_output *o) /* Some metadata */ t = time(NULL); - g_string_append_printf(header, "; CSV, generated by %s on %s", - PACKAGE_STRING, ctime(&t)); + g_string_append_printf(header, "; CSV, generated by %s %s on %s", + PACKAGE_NAME, SR_PACKAGE_VERSION_STRING, ctime(&t)); /* Columns / channels */ num_channels = g_slist_length(o->sdi->channels); @@ -224,7 +224,7 @@ static int receive(const struct sr_output *o, const struct sr_datafeed_packet *p */ memset(ctx->analog_vals, 0, sizeof(float) * ctx->num_analog_channels); ctx->inframe = TRUE; - ret = SR_OK_CONTINUE; + ret = SR_OK; break; case SR_DF_FRAME_END: /* @@ -270,7 +270,6 @@ static int receive(const struct sr_output *o, const struct sr_datafeed_packet *p if (ctx->inframe) { handle_analog_frame(ctx, analog); - ret = SR_OK_CONTINUE; break; }