Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ti-connected-launchpad
lm4tools_public
Commits
789ad948
Commit
789ad948
authored
Oct 29, 2012
by
Zygmunt Krynicki
Browse files
send_flash_verify: return error code on transfer failure
parent
79b32d37
Changes
1
Show whitespace changes
Inline
Side-by-side
lm4flash/lm4flash.c
View file @
789ad948
...
...
@@ -326,6 +326,8 @@ static int send_flash_verify(libusb_device_handle *handle, const uint32_t addr,
size_t
idx
=
snprintf
(
buf
.
c
,
BUF_SIZE
,
START
"x%x,%x"
,
addr
,
(
uint32_t
)
len
);
retval
=
checksum_and_send
(
handle
,
idx
,
&
transfered
);
if
(
retval
)
return
retval
;
for
(
i
=
0
;
i
<
transfered
;
i
++
)
{
switch
(
by
=
buf
.
u8
[
i
])
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment