summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-11-03 07:03:57 -0500
committerSolomon Peachy <pizza@shaftnet.org>2019-11-03 07:03:57 -0500
commit80f44dce5df3770ac544a6f72e4f2afbafb4da80 (patch)
tree7161ed0844de1af779b7e2d672adfb7588cb5d1c
parent10aa517dcf82e8dd989066e92c3b29b654e28cc4 (diff)
downloadselphy_print-80f44dce5df3770ac544a6f72e4f2afbafb4da80.tar.gz
selphy_print-80f44dce5df3770ac544a6f72e4f2afbafb4da80.tar.bz2
selphy_print-80f44dce5df3770ac544a6f72e4f2afbafb4da80.zip
sonyupdneo: Fix regression failure
We can't query status in TEST_MODE_NOATTACH
-rw-r--r--backend_sonyupdneo.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/backend_sonyupdneo.c b/backend_sonyupdneo.c
index 0d10693..571a044 100644
--- a/backend_sonyupdneo.c
+++ b/backend_sonyupdneo.c
@@ -89,9 +89,11 @@ static int updneo_attach(void *vctx, struct libusb_device_handle *dev, int type,
ctx->type = type;
ctx->iface = iface;
- /* Query printer status */
- if ((ret = updneo_get_status(ctx))) {
- return ret;
+ if (test_mode < TEST_MODE_NOATTACH) {
+ /* Query printer status */
+ if ((ret = updneo_get_status(ctx))) {
+ return ret;
+ }
}
if (ctx->type == P_SONY_UPD898) {