Skip to content

Commit 727fc2b

Browse files
Xu Yangnxpfrankli
authored andcommitted
fastboot: change m_Maxsize_pre_cmd to 16KB in FBCopy
The Chipidea USB controller doesn't support transfer length bigger than 16KB. So change m_Maxsize_pre_cmd to 16KB in FBCopy. This change will not have performance drop compared to 64KB for High-speed and Super-speed mode. Signed-off-by: Xu Yang <[email protected]>
1 parent b3163b7 commit 727fc2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libuuu/fastboot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class FBCopy : public CmdBase
288288
private:
289289
bool m_bDownload;
290290
std::string m_local_file;
291-
size_t m_Maxsize_pre_cmd = 0x10000;
291+
size_t m_Maxsize_pre_cmd = 0x4000;
292292
std::string m_target_file;
293293
};
294294

0 commit comments

Comments
 (0)