Fix warnings.

This commit is contained in:
Stefan `Sec` Zehl 2011-08-05 18:11:37 +02:00
parent c2ff7c3060
commit 72e04c1d38
2 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ void m_choose(){
lcdPrintln(IntToStrX(uint8ptouint32(meshbuffer[j].pkt+18),8));
lcdPrintln(IntToStrX(uint8ptouint32(meshbuffer[j].pkt+22),8));
lcdPrintln(IntToStrX(uint8ptouint32(meshbuffer[j].pkt+26),8));
lcdPrint(IntToStr(popcount(meshbuffer[j].pkt+6,6),3,0));
lcdPrint(IntToStr(popcount((uint32_t*)(meshbuffer[j].pkt+6),6),3,0));
lcdPrintln(" pts.");
lcdRefresh();
getInputWaitRelease();

View File

@ -188,7 +188,7 @@ uint8_t mesh_recvqloop_work(void){
for(int i=6;i<MESHPKTSIZE;i++)
mpkt->pkt[i]|=buf[i];
int score=popcount(MO_BODY(mpkt->pkt),6);
int score=popcount((uint32_t*)MO_BODY(mpkt->pkt),6);
MPKT* reply=meshGetMessage('z');