Increase timeout of Mass Storage and Still Image host commands to 10 seconds (up from 5) to account for slow-processing devices.
Added brace guards to macros with parameters to prevent unintended changed evaluation of the macro expression. Minor code cleanups (remove redundant comments, fix spacing, etc.).
This commit is contained in:
@@ -267,7 +267,7 @@
|
||||
#define COMMAND_DIRECTION_DATA_OUT (0 << 7)
|
||||
#define COMMAND_DIRECTION_DATA_IN (1 << 7)
|
||||
|
||||
#define COMMAND_DATA_TIMEOUT_MS 2000
|
||||
#define COMMAND_DATA_TIMEOUT_MS 10000
|
||||
|
||||
#define MS_FOUND_DATAPIPE_IN (1 << 0)
|
||||
#define MS_FOUND_DATAPIPE_OUT (1 << 1)
|
||||
|
||||
Reference in New Issue
Block a user