Skip to content
Snippets Groups Projects
Commit 4cd3246f authored by Vadzim Dambrouski's avatar Vadzim Dambrouski Committed by Albert ARIBAUD
Browse files

arm: stm32f4: fix a bug when only first sector gets erased


flash_lock call is inside a for loop, so after the first iteration flash
is locked and no more sectors can be erased.
Move flash_lock out of the loop.

Signed-off-by: default avatarVadzim Dambrouski <pftbest@gmail.com>
parent 35629363
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment