Update funk test app

This commit is contained in:
Stefan `Sec` Zehl 2011-07-09 14:53:33 +02:00
parent 5feababa13
commit 1bd05ca9cf
1 changed files with 4 additions and 3 deletions

View File

@ -46,10 +46,12 @@ void f_recv(void){
if(len==0){ if(len==0){
dx=DoString(0,dy,"No pkt"); dy+=8; dx=DoString(0,dy,"No pkt"); dy+=8;
return; return;
}; }else if (len ==-1){
if(len<0){
dx=DoString(0,dy,"Pkt too lg"); dy+=8; dx=DoString(0,dy,"Pkt too lg"); dy+=8;
return; return;
}else if (len ==-2){
dx=DoString(0,dy,"No pkt error?"); dy+=8;
return;
}; };
dx=DoString(0,dy,"Size:"); DoInt(dx,dy,len); dy+=8; dx=DoString(0,dy,"Size:"); DoInt(dx,dy,len); dy+=8;
dx=DoString(0,dy,"1:"); DoIntX(dx,dy,*(int*)(buf));dy+=8; dx=DoString(0,dy,"1:"); DoIntX(dx,dy,*(int*)(buf));dy+=8;
@ -217,7 +219,6 @@ void handleMenu(const struct MENU *the_menu) {
case BTN_RIGHT: case BTN_RIGHT:
if (the_menu->entries[menuselection]->callback!=NULL) if (the_menu->entries[menuselection]->callback!=NULL)
the_menu->entries[menuselection]->callback(); the_menu->entries[menuselection]->callback();
while (getInput()==BTN_NONE) delayms(10);
break; break;
case BTN_ENTER: case BTN_ENTER:
lcdFill(0); lcdFill(0);