1
0
Fork 0
forked from len0rd/rockbox

imxtools/scsitools: increase SCSI delay to 10 seconds

On some OSes like Windows or if running in a virtual machine, the one second
timeout might be too short.

Change-Id: I717f7a2aaed1cb3d40e8fbe6f9b1081b43ceea95
This commit is contained in:
Amaury Pouly 2014-02-22 20:27:32 +01:00
parent aae249c206
commit c02bc1afd2
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@
#include "rtc-imx233.h" #include "rtc-imx233.h"
#include "pcm_sampr.h" #include "pcm_sampr.h"
#include "audio-target.h" #include "audio-target.h"
#include "power-imx233.h"
#ifndef IMX233_AUDIO_COUPLING_MODE #ifndef IMX233_AUDIO_COUPLING_MODE
#error You must define IMX233_AUDIO_COUPLING_MODE #error You must define IMX233_AUDIO_COUPLING_MODE

View file

@ -137,7 +137,7 @@ int do_scsi(uint8_t *cdb, int cdb_size, unsigned flags, void *sense, int *sense_
set_scsi_pt_data_in(obj, buffer, *buf_size); set_scsi_pt_data_in(obj, buffer, *buf_size);
if(flags & DO_WRITE) if(flags & DO_WRITE)
set_scsi_pt_data_out(obj, buffer, *buf_size); set_scsi_pt_data_out(obj, buffer, *buf_size);
int ret = do_scsi_pt(obj, g_dev_fd, 1, 0); int ret = do_scsi_pt(obj, g_dev_fd, 10, 0);
switch(get_scsi_pt_result_category(obj)) switch(get_scsi_pt_result_category(obj))
{ {
case SCSI_PT_RESULT_SENSE: case SCSI_PT_RESULT_SENSE: