Use 1boot loadable for real

This commit is contained in:
Stefan `Sec` Zehl 2011-08-04 17:20:24 +02:00
parent b933ebce40
commit 9da6d74f2e
2 changed files with 17 additions and 4 deletions

View File

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

View File

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