Merge branch 'master' of github.com:r0ket/r0ket

This commit is contained in:
schneider 2011-08-13 01:10:59 +02:00
commit 0eaf74fa87
3 changed files with 15 additions and 13 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;

View File

@ -91,7 +91,6 @@ GetVoltage
isNight
_timectr
crc16
randomInit
getRandom
getSeconds
iapReadSerialNumber