sonyupdneo: Fix regression failure

We can't query status in TEST_MODE_NOATTACH
This commit is contained in:
Solomon Peachy 2019-11-03 07:03:57 -05:00
parent 7b42b49aa1
commit 9a719b26ae
1 changed files with 5 additions and 3 deletions

View File

@ -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) {