Fix for PIN DND

This commit is contained in:
NIIBE Yutaka
2016-07-07 11:53:49 +09:00
parent 9697694e45
commit 2647797348
3 changed files with 2 additions and 2 deletions

View File

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

View File

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