From e2a1a057fa1e256c51af11f02ef4f00165ecf460 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 19 Jul 2013 19:53:08 -0400 Subject: [PATCH] common: Fix printer matching for all backends other than SELPHY. --- backend_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend_common.c b/backend_common.c index f38881e..40e31f4 100644 --- a/backend_common.c +++ b/backend_common.c @@ -27,7 +27,7 @@ #include "backend_common.h" -#define BACKEND_VERSION "0.13" +#define BACKEND_VERSION "0.14" #ifndef URI_PREFIX #define URI_PREFIX "gutenprint+usb" #endif @@ -243,7 +243,8 @@ static int find_and_enumerate(struct libusb_context *ctx, if (desc.idVendor == backends[k]->devices[j].vid && desc.idProduct == backends[k]->devices[j].pid) { match = 1; - if (printer_type && printer_type == backends[k]->devices[j].type) + if (printer_type == P_ANY || + printer_type == backends[k]->devices[j].type) found = i; goto match; }