laforge
/
openbts-osmo
Archived
1
0
Fork 0

uhd: remove extra type conversion

Type conversion, if necessary, should happen inside the device.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
Thomas Tsou 2011-05-04 15:48:15 -04:00
parent 47faafb525
commit 2e096d9e9c
1 changed files with 0 additions and 1 deletions

View File

@ -80,7 +80,6 @@ int main(int argc, char *argv[]) {
LOG(INFO) << "rcvd. data@:" << timestamp;
for (int i = 0; i < 512; i++) {
uint32_t *wordPtr = (uint32_t *) &readBuf[2*i];
*wordPtr = usrp_to_host_u32(*wordPtr);
printf ("%llu: %d %d\n", timestamp+i,readBuf[2*i],readBuf[2*i+1]);
sum += (readBuf[2*i+1]*readBuf[2*i+1] + readBuf[2*i]*readBuf[2*i]);
num++;