From 3bb29676ea59e76a997302b8225c17d25257877c Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 20 Apr 2014 10:16:28 -0400 Subject: [PATCH] dnpds40: Fix spurious printout. --- backend_dnpds40.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend_dnpds40.c b/backend_dnpds40.c index f3f77e5..5286ddd 100644 --- a/backend_dnpds40.c +++ b/backend_dnpds40.c @@ -448,8 +448,9 @@ static int dnpds40_read_parse(void *vctx, int data_fd) { if (matte != ctx->last_matte) ctx->buf_needed = 2; - DEBUG("dpi %u matte %u(%u) mcut %u bufs %d\n", - dpi, matte, ctx->last_matte, multicut, ctx->buf_needed); + if (dpi) + DEBUG("dpi %u matte %u(%u) mcut %u bufs %d\n", + dpi, matte, ctx->last_matte, multicut, ctx->buf_needed); /* Track if our last print was matte */ ctx->last_matte = matte; @@ -991,7 +992,7 @@ static int dnpds40_cmdline_arg(void *vctx, int argc, char **argv) /* Exported */ struct dyesub_backend dnpds40_backend = { .name = "DNP DS40/DS80/DSRX1", - .version = "0.30", + .version = "0.31", .uri_prefix = "dnpds40", .cmdline_usage = dnpds40_cmdline, .cmdline_arg = dnpds40_cmdline_arg,