Fix return to main when setting an autoboot option

This fixes the issue with "More configs".
This commit is contained in:
Kostas Missos
2018-12-16 20:21:59 +02:00
parent 98d715243a
commit 9f5b97620a
3 changed files with 11 additions and 8 deletions

View File

@@ -322,6 +322,7 @@ void menu_autorcm()
ments[4].handler = _disable_autorcm;
}
ments[4].type = MENT_HDLR_RE;
ments[4].data = NULL;
memset(&ments[5], 0, sizeof(ment_t));
menu_t menu = {ments, "This corrupts your BOOT0!", 0, 0};