Garn E
/
TestMisuraTx
Fork of SX1272PingPong by
Revision 16:0cf0cb508f19, committed 2018-06-01
- Comitter:
- Viktor5
- Date:
- Fri Jun 01 09:39:00 2018 +0000
- Parent:
- 15:77a116408c4b
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 77a116408c4b -r 0cf0cb508f19 main.cpp --- a/main.cpp Fri Jun 01 09:32:13 2018 +0000 +++ b/main.cpp Fri Jun 01 09:39:00 2018 +0000 @@ -185,8 +185,8 @@ - //for(int count=0; count<misure; count++) - //{ + for(int count=0; count<misure; count++) + { // Send the next PING frame strcpy( ( char* )Buffer, ( char* )PingMsg ); @@ -200,7 +200,10 @@ /*while (oktx==0) {} oktx=0;*/ - + while (button1==1) + { + wait_ms (100); + } debug( "Start TX\r\n" ); t.start(); Radio.Send( Buffer, BufferSize ); //send @@ -208,7 +211,7 @@ //debug ("End TX\r\n"); //t.stop(); - wait_ms( 10000 ); + //wait_ms( 10000 ); /*tmisura=t.read(); somma+=tmisura; t.reset(); @@ -220,7 +223,7 @@ debug("\r\n\n\n");*/ - //} + } somma=somma/misure; debug("Tempo medio di TX\r\n"); @@ -388,7 +391,7 @@ wait (10); - Radio.Send( Buffer, BufferSize ); //send + //Radio.Send( Buffer, BufferSize ); //send }