diff --git a/firmware/applications/mesh/mesh.c b/firmware/applications/mesh/mesh.c index 0ee67e4..dccfd6d 100644 --- a/firmware/applications/mesh/mesh.c +++ b/firmware/applications/mesh/mesh.c @@ -71,7 +71,7 @@ void m_tset(void){ void m_cleanup(void){ time_t now=getSeconds(); - for(int i=0;i_timet) // Do not live in the past. _timet = toff; - lcdPrintln("Got T"); - lcdPrintInt(getSeconds());lcdNl(); - }else if (buf[0]>='A' && buf[0] <'T'){ // Truncate ascii packets. meshbuffer[i].pkt[MESHPKTSIZE-3]=0; }; - lcdRefresh(); }while(getTimer()tm_year+YEAR0); lcdNl(); lcdRefresh(); - delayms(50); + delayms_queue(50); }while ((getInputRaw())==BTN_NONE); }; - -void m_send(void){ - int ctr=0; - __attribute__ ((aligned (4))) uint8_t buf[32]; - int status; - - lcdClear(); - // Update [T]ime packet - - uint32touint8p(getSeconds(),meshbuffer[0].pkt+2); - for (int i=0;i