summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {