[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r8659 - usrp2/branches/features/host-ng/host-ng/lib
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r8659 - usrp2/branches/features/host-ng/host-ng/lib |
Date: |
Sun, 22 Jun 2008 18:26:36 -0600 (MDT) |
Author: jcorgan
Date: 2008-06-22 18:26:25 -0600 (Sun, 22 Jun 2008)
New Revision: 8659
Modified:
usrp2/branches/features/host-ng/host-ng/lib/usrp2_impl.cc
Log:
Use libgruel byteswap routines.
Modified: usrp2/branches/features/host-ng/host-ng/lib/usrp2_impl.cc
===================================================================
--- usrp2/branches/features/host-ng/host-ng/lib/usrp2_impl.cc 2008-06-23
00:25:56 UTC (rev 8658)
+++ usrp2/branches/features/host-ng/host-ng/lib/usrp2_impl.cc 2008-06-23
00:26:25 UTC (rev 8659)
@@ -22,6 +22,7 @@
#include <usrp2/usrp2.h>
#include <usrp2/tune_result.h>
+#include <gruel/inet.h>
#include <usrp2_types.h>
#include "usrp2_impl.h"
#include "usrp2_thread.h"
@@ -197,7 +198,7 @@
if (!transmit_cmd(&cmd, sizeof(cmd), &p, DEF_CMD_TIMEOUT))
return false;
- bool success = (ntohs(reply.ok) == 1);
+ bool success = (ntohx(reply.ok) == 1);
if (USRP2_IMPL_DEBUG)
std::cerr << (success ? "ok." : "fail.") << std::endl;
return success;
@@ -222,7 +223,7 @@
if (!transmit_cmd(&cmd, sizeof(cmd), &p, DEF_CMD_TIMEOUT))
return false;
- bool success = (ntohs(reply.ok) == 1);
+ bool success = (ntohx(reply.ok) == 1);
if (USRP2_IMPL_DEBUG)
std::cerr << (success ? "ok." : "fail.") << std::endl;
@@ -265,7 +266,7 @@
if (!transmit_cmd(&cmd, sizeof(cmd), &p, DEF_CMD_TIMEOUT))
return false;
- bool success = (ntohs(reply.ok) == 1);
+ bool success = (ntohx(reply.ok) == 1);
if (USRP2_IMPL_DEBUG)
std::cerr << (success ? "ok." : "fail.") << std::endl;
return success;
@@ -289,7 +290,7 @@
if (!transmit_cmd(&cmd, sizeof(cmd), &p, DEF_CMD_TIMEOUT))
return false;
- bool success = (ntohs(reply.ok) == 1);
+ bool success = (ntohx(reply.ok) == 1);
if (USRP2_IMPL_DEBUG)
std::cerr << (success ? "ok." : "fail.") << std::endl;
return success;
@@ -320,7 +321,7 @@
if (!transmit_cmd(&cmd, sizeof(cmd), &p, DEF_CMD_TIMEOUT))
return false;
- bool success = (reply.ok == 1);
+ bool success = (ntohx(reply.ok) == 1);
if (USRP2_IMPL_DEBUG)
std::cerr << (success ? "ok." : "fail.") << std::endl;
return success;
@@ -347,7 +348,7 @@
if (!transmit_cmd(&cmd, sizeof(cmd), &p, DEF_CMD_TIMEOUT))
return false;
- bool success = (reply.ok == 1);
+ bool success = (ntohx(reply.ok) == 1);
if (USRP2_IMPL_DEBUG)
std::cerr << (success ? "ok." : "fail.") << std::endl;
return success;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r8659 - usrp2/branches/features/host-ng/host-ng/lib,
jcorgan <=