Skip to content

Commit

Permalink
Removed one second delay in login
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustafa Safri committed May 7, 2015
1 parent 22388eb commit a4f7e7a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/LMS1xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <cstring>
#include <unistd.h>

#include "ros/ros.h"
#include "LMS1xx/LMS1xx.h"
#include "console_bridge/console.h"

Expand Down Expand Up @@ -123,11 +122,11 @@ void LMS1xx::login() {

fd_set readset;
struct timeval timeout;
timeout.tv_sec = 1;
timeout.tv_usec = 0;


do { //loop until data is available to read
ros::Duration(1.0).sleep();
timeout.tv_sec = 1;
timeout.tv_usec = 0;

write(sockDesc, buf, strlen(buf));

Expand Down

0 comments on commit a4f7e7a

Please sign in to comment.