Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
58427563
Commit
58427563
authored
Jan 12, 2016
by
Johny Mattsson
Browse files
Ugly workaround for broken SPIFFS GC alignment.
Proper fix should be done upstream and pulled in once available.
parent
e9f16d1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/spiffs/spiffs_gc.c
View file @
58427563
...
...
@@ -250,6 +250,10 @@ s32_t spiffs_gc_find_candidate(
// divide up work area into block indices and scores
// todo alignment?
// YES DO PROPER ALIGNMENT !^@#%!@%!
if
(
max_candidates
&
1
)
++
max_candidates
;
// HACK WORKAROUND ICK for sizeof(spiffs_block_idx)==2
spiffs_block_ix
*
cand_blocks
=
(
spiffs_block_ix
*
)
fs
->
work
;
s32_t
*
cand_scores
=
(
s32_t
*
)(
fs
->
work
+
max_candidates
*
sizeof
(
spiffs_block_ix
));
...
...
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