55 lines
1.1 KiB
C
55 lines
1.1 KiB
C
#include <sysinit.h>
|
|
|
|
#include "basic/basic.h"
|
|
|
|
#include "lcd/print.h"
|
|
|
|
#include <string.h>
|
|
|
|
#include "basic/ecc.h"
|
|
|
|
#include "basic/config.h"
|
|
|
|
/**************************************************************************/
|
|
|
|
#include "final.gen"
|
|
|
|
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;
|
|
|
|
while(1){
|
|
#ifndef FINAL
|
|
if(getInputRaw()==BTN_LEFT)
|
|
ISPandReset();
|
|
#endif
|
|
if(getInput()){
|
|
handleMenu(&mainmenu);
|
|
getInputWaitRelease();
|
|
init_nick();
|
|
};
|
|
work_queue();
|
|
fancyNickname();
|
|
};
|
|
};
|
|
|
|
void tick_final(void);
|