Fix for PIN DND
This commit is contained in:
@@ -18,8 +18,8 @@
|
|||||||
#define SCSI_WRITE10 0x2A
|
#define SCSI_WRITE10 0x2A
|
||||||
#define SCSI_VERIFY10 0x2F
|
#define SCSI_VERIFY10 0x2F
|
||||||
#define SCSI_READ_FORMAT_CAPACITIES 0x23
|
#define SCSI_READ_FORMAT_CAPACITIES 0x23
|
||||||
|
|
||||||
#define SCSI_SYNCHRONIZE_CACHE 0x35
|
#define SCSI_SYNCHRONIZE_CACHE 0x35
|
||||||
|
#define SCSI_REPORT_LUN 0xA0
|
||||||
|
|
||||||
#define MSC_IDLE 0
|
#define MSC_IDLE 0
|
||||||
#define MSC_DATA_OUT 1
|
#define MSC_DATA_OUT 1
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ usb_setup (struct usb_dev *dev)
|
|||||||
#ifdef PINPAD_DND_SUPPORT
|
#ifdef PINPAD_DND_SUPPORT
|
||||||
else if (arg->index == MSC_INTERFACE)
|
else if (arg->index == MSC_INTERFACE)
|
||||||
{
|
{
|
||||||
if (USB_SETUP_GET (req))
|
if (USB_SETUP_GET (arg->type))
|
||||||
{
|
{
|
||||||
if (arg->request == MSC_GET_MAX_LUN_COMMAND)
|
if (arg->request == MSC_GET_MAX_LUN_COMMAND)
|
||||||
return usb_lld_ctrl_send (dev, lun_table, sizeof (lun_table));
|
return usb_lld_ctrl_send (dev, lun_table, sizeof (lun_table));
|
||||||
|
|||||||
Reference in New Issue
Block a user