commit | 304d861f9ecb02b60766b93f201fc186d41e1c82 | [log] [tgz] |
---|---|---|
author | Vadzim Dambrouski <pftbest@gmail.com> | Fri Oct 23 21:14:06 2015 +0300 |
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | Tue Nov 10 16:48:47 2015 +0100 |
tree | 2ef1b86868e2ceb729f80ba5f866da8dc540209a | |
parent | f02c2544e0f0ce3cfc1fc9345f1d52335dd4f0e7 [diff] |
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: Vadzim Dambrouski <pftbest@gmail.com>