From 654905a94d0f917a13e01298ed478c59060b70d8 Mon Sep 17 00:00:00 2001 From: Robert Johansson Date: Fri, 30 Aug 2013 00:20:35 +0900 Subject: [PATCH] bug fix in timeout config --- mbus/mbus-tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbus/mbus-tcp.c b/mbus/mbus-tcp.c index e3f7644..c77b658 100755 --- a/mbus/mbus-tcp.c +++ b/mbus/mbus-tcp.c @@ -160,7 +160,7 @@ mbus_tcp_send_frame(mbus_handle *handle, mbus_frame *frame) // call the send event function, if the callback function is registered // if (_mbus_send_event) - _mbus_send_event(MBUS_HANDLE_TYPE_TCP, buff, len); + _mbus_send_event(MBUS_HANDLE_TYPE_TCP, buff, len); } else { @@ -258,7 +258,7 @@ mbus_tcp_set_timeout_set(double seconds) } tcp_timeout_sec = (int)seconds; - tcp_timeout_sec = (seconds - tcp_timeout_sec) * 1000000; + tcp_timeout_usec = (seconds - tcp_timeout_sec) * 1000000; return 0; }