]> sigrok.org Git - libsigrok.git/commitdiff
output/csv: Avoid using SR_OK_CONTINUE.
authorBert Vermeulen <redacted>
Sun, 30 Aug 2015 19:13:51 +0000 (21:13 +0200)
committerBert Vermeulen <redacted>
Sun, 30 Aug 2015 19:13:51 +0000 (21:13 +0200)
src/output/csv.c

index d3f9966497bebabf722d309d3a705030570f48b0..8b234424c22211a0976552a131fbb5c549a7d0e6 100644 (file)
@@ -223,7 +223,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:
                /*
@@ -269,7 +269,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;
                }