Commit f4a6073b authored by Oitzu's avatar Oitzu

Merged TMRh20's changes.

parent 2bb6f325
......@@ -177,15 +177,16 @@ int main(int argc, char** argv){
if(role == role_pong_back)
{
counter = 0;
delay(10000);
rxTimer = millis();
printf("Rate: ");
float numBytes = counter*32;
printf("%.2f KB/s \n\r",numBytes/100);
printf("Payload Count: %lu \n\r", counter);
if(millis() - rxTimer > 1000){
rxTimer = millis();
printf("Rate: ");
float numBytes = counter*32;
printf("%.2f KB/s \n\r",numBytes/1000);
printf("Payload Count: %lu \n\r", counter);
counter = 0;
}
delay(2);
}
} // loop
} // main
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment