aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Transceiver52M/device/usrp1/USRPDevice.cpp2
-rw-r--r--tests/Transceiver52M/convolve_test.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Transceiver52M/device/usrp1/USRPDevice.cpp b/Transceiver52M/device/usrp1/USRPDevice.cpp
index 758ee55..5d19514 100644
--- a/Transceiver52M/device/usrp1/USRPDevice.cpp
+++ b/Transceiver52M/device/usrp1/USRPDevice.cpp
@@ -398,7 +398,7 @@ int USRPDevice::readSamples(std::vector<short *> &bufs, int len, bool *overrun,
// read USRP packets, parse and save A/D data as needed
readLen = m_uRx->read((void *)readBuf,readLen,overrun);
- for(int pktNum = 0; pktNum < (readLen/512); pktNum++) {
+ for (int pktNum = 0; pktNum < (readLen/512); pktNum++) {
// tmpBuf points to start of a USB packet
uint32_t* tmpBuf = (uint32_t *) (readBuf+pktNum*512/4);
TIMESTAMP pktTimestamp = usrp_to_host_u32(tmpBuf[1]);
diff --git a/tests/Transceiver52M/convolve_test.c b/tests/Transceiver52M/convolve_test.c
index 88624af..54bc7a1 100644
--- a/tests/Transceiver52M/convolve_test.c
+++ b/tests/Transceiver52M/convolve_test.c
@@ -18,7 +18,7 @@ float *y;
void gen_floats(float *vect, int len)
{
int i;
- for(i=0;i<len;i++) {
+ for (i = 0; i < len; i++) {
vect[i] = (float)rand()/(float)(RAND_MAX);
}
}
@@ -45,7 +45,7 @@ static void dump_floats(float *vect, int len, char *name)
int i;
printf("float %s[] = {", name);
- for(i=0;i<len;i++) {
+ for(i = 0; i < len; i++) {
printf("%f",vect[i]);