commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 10/148: Fix incorrect comparison


From: git
Subject: [Commit-gnuradio] [gnuradio] 10/148: Fix incorrect comparison
Date: Mon, 15 Aug 2016 00:47:19 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

nwest pushed a commit to annotated tag old_usrp_devel_udp
in repository gnuradio.

commit 93de49f7034ce831f500c650ab728bc670e695ad
Author: Johnathan Corgan <address@hidden>
Date:   Sat Oct 31 07:41:02 2009 -0700

    Fix incorrect comparison
---
 usrp2/host/lib/usrp2_impl.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usrp2/host/lib/usrp2_impl.cc b/usrp2/host/lib/usrp2_impl.cc
index 905b74d..9859440 100644
--- a/usrp2/host/lib/usrp2_impl.cc
+++ b/usrp2/host/lib/usrp2_impl.cc
@@ -380,10 +380,10 @@ namespace usrp2 {
   usrp2::impl::run_ctrl_thread()
   {
     d_ctrl_running = true;
-    uint32_t buff[100];
+    uint32_t buff[100]; // FIXME use MTU
     while (d_ctrl_running){
       int ctrl_recv_len = d_eth_ctrl->read_packet_dont_block(buff, 
sizeof(buff));
-      if (ctrl_recv_len >= 0) handle_control_packet(buff, ctrl_recv_len);
+      if (ctrl_recv_len > 0) handle_control_packet(buff, ctrl_recv_len);
       boost::thread::sleep(gruel::get_new_timeout(0.05)); //50ms timeout
     }
   }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]