sonyupdneo: Fix regression failure
We can't query status in TEST_MODE_NOATTACH
This commit is contained in:
parent
7b42b49aa1
commit
9a719b26ae
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue