summaryrefslogtreecommitdiffstats
path: root/backend_mitsup95d.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-02-28 22:01:35 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-02-28 22:01:35 -0500
commit4cb392b2fce5e2d514d274a4ce727f270b83e447 (patch)
treede2912f21d49e9ce84fecb74d6e7a81f7bf6c612 /backend_mitsup95d.c
parentdf5cded6d5d9f8868435376c488dfb14300207f9 (diff)
downloadselphy_print-4cb392b2fce5e2d514d274a4ce727f270b83e447.tar.gz
selphy_print-4cb392b2fce5e2d514d274a4ce727f270b83e447.tar.bz2
selphy_print-4cb392b2fce5e2d514d274a4ce727f270b83e447.zip
mitsu_p9x: Fix execution in test mode.
Diffstat (limited to 'backend_mitsup95d.c')
-rw-r--r--backend_mitsup95d.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend_mitsup95d.c b/backend_mitsup95d.c
index 68f91d6..0aa72c4 100644
--- a/backend_mitsup95d.c
+++ b/backend_mitsup95d.c
@@ -147,6 +147,9 @@ static int mitsup95d_attach(void *vctx, struct libusb_device_handle *dev, int ty
ctx->marker.levelmax = CUPS_MARKER_UNAVAILABLE;
ctx->marker.levelnow = CUPS_MARKER_UNKNOWN;
+ if (test_mode >= TEST_MODE_NOATTACH)
+ goto done;
+
/* Query serial number */
{
struct libusb_device_descriptor desc;
@@ -165,6 +168,8 @@ static int mitsup95d_attach(void *vctx, struct libusb_device_handle *dev, int ty
}
}
}
+
+done:
return CUPS_BACKEND_OK;
}