Skip to content

Commit

Permalink
fix spinOnce timeout : 5ms -> 5s (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
1r0b1n0 authored and mikepurvis committed Oct 4, 2017
1 parent 2f18dfa commit f3ebb39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosserial_client/src/ros_lib/ros/node_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ namespace ros {
mode_++;
last_msg_timeout_time = c_time + SERIAL_MSG_TIMEOUT;
}
else if( hardware_.time() - c_time > (SYNC_SECONDS)){
else if( hardware_.time() - c_time > (SYNC_SECONDS*1000)){
/* We have been stuck in spinOnce too long, return error */
configured_=false;
return -2;
Expand Down

0 comments on commit f3ebb39

Please sign in to comment.