output_ols: disabled cursors don't really need to be listed
This commit is contained in:
parent
82957b65b1
commit
4487177c79
|
@ -43,7 +43,7 @@ static int init(struct sr_output *o)
|
||||||
struct sr_probe *probe;
|
struct sr_probe *probe;
|
||||||
GSList *l;
|
GSList *l;
|
||||||
uint64_t samplerate;
|
uint64_t samplerate;
|
||||||
int num_enabled_probes, i;
|
int num_enabled_probes;
|
||||||
|
|
||||||
if (!(ctx = g_malloc(sizeof(struct context))))
|
if (!(ctx = g_malloc(sizeof(struct context))))
|
||||||
return SR_ERR_MALLOC;
|
return SR_ERR_MALLOC;
|
||||||
|
@ -70,8 +70,6 @@ static int init(struct sr_output *o)
|
||||||
g_string_append_printf(ctx->header, ";EnabledChannels: -1\n");
|
g_string_append_printf(ctx->header, ";EnabledChannels: -1\n");
|
||||||
g_string_append_printf(ctx->header, ";Compressed: true\n");
|
g_string_append_printf(ctx->header, ";Compressed: true\n");
|
||||||
g_string_append_printf(ctx->header, ";CursorEnabled: false\n");
|
g_string_append_printf(ctx->header, ";CursorEnabled: false\n");
|
||||||
for (i = 0; i < 10; i++)
|
|
||||||
g_string_append_printf(ctx->header, ";Cursor%d: 0\n", i);
|
|
||||||
|
|
||||||
return SR_OK;
|
return SR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue