Revision: 8526
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8526&view=rev
Author:   thjc
Date:     2010-01-24 14:27:08 +0000 (Sun, 24 Jan 2010)

Log Message:
-----------
Fix timestamp intialisation in rflex sleep loop (thanks Giri)

Modified Paths:
--------------
    code/player/trunk/server/drivers/mixed/rflex/rflex_commands.cc

Modified: code/player/trunk/server/drivers/mixed/rflex/rflex_commands.cc
===================================================================
--- code/player/trunk/server/drivers/mixed/rflex/rflex_commands.cc      
2010-01-22 23:55:45 UTC (rev 8525)
+++ code/player/trunk/server/drivers/mixed/rflex/rflex_commands.cc      
2010-01-24 14:27:08 UTC (rev 8526)
@@ -172,13 +172,14 @@
   writeData( fd, cmd, 9+len );
 
        // Some issues with commands not being recognised if sent too rapidly
-       // (too small a buffer on recieving end?
+       // (too small a buffer on receiving end?
        // So we delay for a bit, specifically we wait until specified amount of
-       // time has passed without recieving a packet. This roughtly 
approximates
-       // to waiting till the command has finshed being executed on the robot
+       // time has passed without recieving a packet. This roughly approximates
+       // to waiting till the command has finished being executed on the robot
        int count;
        timeval now;
        timeval start = {0,0};
+       gettimeofday(&start,NULL);
        do
        {
                count = clear_incoming_data(fd);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to