cosmetic: Use proper whitespace in several for loops

Change-Id: I82bdeb8a3fa38f3d125e8cbccc3eddbf2b8d8f58
changes/56/10856/3
Pau Espin 4 years ago committed by Harald Welte
parent 6fdfb68b9e
commit 4d179abfd0
  1. 2
      Transceiver52M/device/usrp1/USRPDevice.cpp
  2. 4
      tests/Transceiver52M/convolve_test.c

@ -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]);

@ -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]);

Loading…
Cancel
Save