diff --git a/firmware/applications/final/mesh.c b/firmware/applications/final/mesh.c index 57843d4..83c3669 100644 --- a/firmware/applications/final/mesh.c +++ b/firmware/applications/final/mesh.c @@ -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(); diff --git a/firmware/funk/mesh.c b/firmware/funk/mesh.c index 6d9d0db..2e75b51 100644 --- a/firmware/funk/mesh.c +++ b/firmware/funk/mesh.c @@ -188,7 +188,7 @@ uint8_t mesh_recvqloop_work(void){ for(int i=6;ipkt[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');