Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
3c4b78e1
Commit
3c4b78e1
authored
Sep 11, 2015
by
Daniel Campora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cc3200: Keep overwriting the same image on sequential updates.
parent
7d6b6f66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cc3200/ftp/updater.c
cc3200/ftp/updater.c
+2
-1
No files found.
cc3200/ftp/updater.c
View file @
3c4b78e1
...
...
@@ -87,8 +87,9 @@ bool updater_check_path (void *path) {
if
(
!
sl_FsOpen
((
unsigned
char
*
)
IMG_BOOT_INFO
,
FS_MODE_OPEN_READ
,
NULL
,
&
fhandle
))
{
ASSERT
(
sizeof
(
sBootInfo_t
)
==
sl_FsRead
(
fhandle
,
0
,
(
unsigned
char
*
)
&
sBootInfo
,
sizeof
(
sBootInfo_t
)));
sl_FsClose
(
fhandle
,
0
,
0
,
0
);
// if we still have an image pending for verification, keep overwriting it
if
((
sBootInfo
.
Status
==
IMG_STATUS_CHECK
&&
sBootInfo
.
ActiveImg
==
IMG_ACT_UPDATE2
)
||
sBootInfo
.
ActiveImg
==
IMG_ACT_UPDATE1
)
{
(
sBootInfo
.
ActiveImg
==
IMG_ACT_UPDATE1
&&
sBootInfo
.
Status
!=
IMG_STATUS_CHECK
)
)
{
updater_data
.
path
=
IMG_UPDATE2
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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