Use 1boot loadable for real
This commit is contained in:
parent
b933ebce40
commit
9da6d74f2e
|
@ -8,6 +8,8 @@
|
||||||
|
|
||||||
#include "basic/ecc.h"
|
#include "basic/ecc.h"
|
||||||
|
|
||||||
|
#include "basic/config.h"
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
#include "final.gen"
|
#include "final.gen"
|
||||||
|
@ -16,6 +18,20 @@ void init_nick();
|
||||||
void fancyNickname();
|
void fancyNickname();
|
||||||
|
|
||||||
void main_final(void) {
|
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();
|
//checkFirstBoot();
|
||||||
init_final();
|
init_final();
|
||||||
menuflags|=MENU_TIMEOUT;
|
menuflags|=MENU_TIMEOUT;
|
||||||
|
|
|
@ -23,10 +23,7 @@ static const struct MENU submenu_privacy={ "Privacy?", {
|
||||||
void ram(void){
|
void ram(void){
|
||||||
// check privacy
|
// check privacy
|
||||||
menuflags|=MENU_JUSTONCE;
|
menuflags|=MENU_JUSTONCE;
|
||||||
if ((GLOBAL(privacy)!=3)) { //TODO Change!
|
|
||||||
handleMenu(&submenu_privacy);
|
handleMenu(&submenu_privacy);
|
||||||
}
|
|
||||||
|
|
||||||
menuflags&= (~MENU_JUSTONCE);
|
menuflags&= (~MENU_JUSTONCE);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue