From 8dc01b80363d34c3624f1ce73773e5a2e2010f45 Mon Sep 17 00:00:00 2001 From: Robin Vanhove Date: Tue, 3 Oct 2017 19:17:01 +0200 Subject: [PATCH] fix spinOnce timeout : 5ms -> 5s --- rosserial_client/src/ros_lib/ros/node_handle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosserial_client/src/ros_lib/ros/node_handle.h b/rosserial_client/src/ros_lib/ros/node_handle.h index 075963585..4f1459fd1 100644 --- a/rosserial_client/src/ros_lib/ros/node_handle.h +++ b/rosserial_client/src/ros_lib/ros/node_handle.h @@ -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;