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:
Sean Cross 2019-08-28 11:49:31 +08:00
parent 99d36a117f
commit c7ee25b3d1

View File

@ -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();