Use 1boot loadable for real
This commit is contained in:
parent
b933ebce40
commit
9da6d74f2e
|
@ -8,6 +8,8 @@
|
|||
|
||||
#include "basic/ecc.h"
|
||||
|
||||
#include "basic/config.h"
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
#include "final.gen"
|
||||
|
@ -16,6 +18,20 @@ void init_nick();
|
|||
void fancyNickname();
|
||||
|
||||
void main_final(void) {
|
||||
if(GLOBAL(privacy)>2){ //firstboot
|
||||
if(execute_file("1boot.int",0,0)){
|
||||
lcdPrintln("Badge SETUP");
|
||||
lcdPrintln("error.");
|
||||
lcdPrintln("Features may");
|
||||
lcdPrintln("be broken.");
|
||||
lcdRefresh();
|
||||
getInputWait();
|
||||
getInputWaitRelease();
|
||||
GLOBAL(privacy)=0;
|
||||
}else{
|
||||
saveConfig();
|
||||
};
|
||||
};
|
||||
//checkFirstBoot();
|
||||
init_final();
|
||||
menuflags|=MENU_TIMEOUT;
|
||||
|
|
|
@ -23,10 +23,7 @@ static const struct MENU submenu_privacy={ "Privacy?", {
|
|||
void ram(void){
|
||||
// check privacy
|
||||
menuflags|=MENU_JUSTONCE;
|
||||
if ((GLOBAL(privacy)!=3)) { //TODO Change!
|
||||
handleMenu(&submenu_privacy);
|
||||
}
|
||||
|
||||
menuflags&= (~MENU_JUSTONCE);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue