![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
2014 Eurobot fork
Dependencies: mbed-rtos mbed QEI
Diff: Processes/Printing/Printing.cpp
- Revision:
- 31:ada943ecaceb
- Parent:
- 21:167dacfe0b14
--- a/Processes/Printing/Printing.cpp Wed Apr 10 14:34:07 2013 +0000 +++ b/Processes/Printing/Printing.cpp Wed Apr 10 18:04:47 2013 +0000 @@ -61,11 +61,13 @@ Serial pc(USBTX, USBRX); pc.baud(115200); - char sync[] = "ABCD"; - cout.write(sync, 4); - cout << std::endl; + while(true){ - while(true){ + //send sync symbol + char sync[] = "ABCD"; + cout.write(sync, 4); + cout << std::endl; + // Send number of packets char numtosend = 0; for (unsigned int v = newdataflags; v; numtosend++){v &= v - 1;}