mirror of
https://github.com/im-tomu/foboot.git
synced 2024-09-20 02:40:09 +00:00
booster: erase itself when there is an error
If a user installs the wrong version of Booster, it is very important that it erase itself so that it doesn't keep getting booted. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
99d36a117f
commit
c7ee25b3d1
@ -124,7 +124,6 @@ __attribute__((noreturn)) static void error(enum error_code code)
|
||||
{
|
||||
error_code = code;
|
||||
rgb_mode_error();
|
||||
while(1);
|
||||
erase_booster();
|
||||
ftfl_busy_wait();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user