bootscreen, bugfix

This commit is contained in:
iggy 2011-08-05 00:49:00 +02:00
parent f6ec40de2f
commit 5a1ed63623
2 changed files with 10 additions and 3 deletions

View File

@ -5,6 +5,7 @@
#include "lcd/lcd.h" #include "lcd/lcd.h"
#include "lcd/fonts/smallfonts.h" #include "lcd/fonts/smallfonts.h"
#include "lcd/print.h" #include "lcd/print.h"
#include "lcd/image.h"
#include "filesystem/ff.h" #include "filesystem/ff.h"
#include "usb/usbmsc.h" #include "usb/usbmsc.h"
#include "basic/random.h" #include "basic/random.h"
@ -15,7 +16,12 @@
void main_default(void) { void main_default(void) {
systickInit(SYSTICKSPEED); systickInit(SYSTICKSPEED);
switch(getInputRaw()){ //show bootscreen
lcdClear();
lcdLoadImage("r0ket.lcd");
lcdRefresh();
switch(getInputRaw()){
case BTN_ENTER: case BTN_ENTER:
ISPandReset(); ISPandReset();
break; break;

View File

@ -18,7 +18,8 @@ void init_nick();
void fancyNickname(); void fancyNickname();
void main_final(void) { void main_final(void) {
if(GLOBAL(privacy)>2){ //firstboot init_nick();
if(GLOBAL(privacy)>2){ //firstboot
if(execute_file("1boot.int",0,0)){ if(execute_file("1boot.int",0,0)){
lcdPrintln("Badge SETUP"); lcdPrintln("Badge SETUP");
lcdPrintln("error."); lcdPrintln("error.");