Skip to content

Commit

Permalink
fixed #79 all data is zero when file transfer from target to windows PC
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Li <Frank.Li@nxp.com>
  • Loading branch information
nxpfrankli committed Jan 25, 2019
1 parent 15806b2 commit c83c28e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libuuu/fastboot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ int FastBoot::Transport(string cmd, void *p, size_t size, vector<uint8_t> *input
{
size_t sz;
sz = strtoul(buff+4, NULL, 16);
if (sz > size)
sz = size;

if (input)
{
Expand All @@ -76,6 +74,9 @@ int FastBoot::Transport(string cmd, void *p, size_t size, vector<uint8_t> *input
}
else
{
if (sz > size)
sz = size;

if (m_pTrans->write(p, sz))
return -1;
}
Expand Down

0 comments on commit c83c28e

Please sign in to comment.