mitsu_p9x: Fix execution in test mode.

This commit is contained in:
Solomon Peachy 2020-02-28 22:01:35 -05:00
parent d9bf9c8001
commit 7a985c2697
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}