Some mesh beauty :-)

This commit is contained in:
Stefan `Sec` Zehl 2011-08-13 00:52:41 +02:00
parent 0c2d4c5420
commit df82442138
2 changed files with 15 additions and 12 deletions

View File

@ -164,15 +164,15 @@ void m_choose(){
case('T'):
strcpy(p,"Time");
break;
case('Z'):
strcpy(p,"Schnitzel");
break;
case('z'):
strcpy(p,"S-Score");
break;
case('i'):
strcpy(p,"Invaders");
break;
case('j'):
strcpy(p,"Jump");
break;
case('r'):
strcpy(p,"r0type");
break;
default:
p[0]=*mm;
p[1]=0;
@ -206,15 +206,15 @@ void m_choose(){
case('T'):
lcdPrintln("Time");
break;
case('Z'):
strcpy(p,"Schnitzel");
break;
case('z'):
strcpy(p,"S-Score");
break;
case('i'):
lcdPrintln("Invaders");
break;
case('j'):
strcpy(p,"Jump");
break;
case('r'):
strcpy(p,"r0type");
break;
};
if(tmm[i]>='a' && tmm[i]<='z'){
lcdPrintln(IntToStr(MO_TIME(meshbuffer[j].pkt),10,0));

View File

@ -41,6 +41,9 @@ int mesh_sanity(uint8_t * pkt){
if(MO_TIME(pkt)<0)
return 1;
};
if(MO_TYPE(pkt)=='t'){
return 1;
};
if(MO_TYPE(pkt)>0x7f || MO_TYPE(pkt)<0x20)
return 1;
return 0;