mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
Make sure that there is one space between while and condition
This commit is contained in:
@@ -626,7 +626,7 @@ static void * cc3000_worker(FAR void *arg)
|
||||
/* We have started release our creator*/
|
||||
|
||||
sem_post(&priv->readysem);
|
||||
while(1)
|
||||
while (1)
|
||||
{
|
||||
PROBE(0,1);
|
||||
CHECK_GUARD(priv);
|
||||
@@ -741,7 +741,7 @@ static void * cc3000_worker(FAR void *arg)
|
||||
} /* end if */
|
||||
|
||||
cc3000_devgive(priv);
|
||||
} /* while(1) */
|
||||
} /* while (1) */
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ static void *unsoliced_thread_func(void *parameter)
|
||||
spiconf.done = sem_open(buff,O_RDONLY);
|
||||
DEBUGASSERT(spiconf.done != (sem_t *)-1);
|
||||
|
||||
while(spiconf.run)
|
||||
while (spiconf.run)
|
||||
{
|
||||
memset(&spiconf.rx_buffer,0,sizeof(spiconf.rx_buffer));
|
||||
nbytes = mq_receive(spiconf.queue, &spiconf.rx_buffer,
|
||||
|
||||
@@ -938,7 +938,7 @@ void SimpleLinkWaitEvent(uint16_t usOpcode, void *pRetParams)
|
||||
hci_event_handler(pRetParams, 0, 0);
|
||||
}
|
||||
}
|
||||
while(tSLInformation.usRxEventOpcode != 0);
|
||||
while (tSLInformation.usRxEventOpcode != 0);
|
||||
|
||||
nllvdbg("Done for usOpcode 0x%x\n",usOpcode);
|
||||
}
|
||||
@@ -996,7 +996,7 @@ void SimpleLinkWaitData(uint8_t *pBuf, uint8_t *from, uint8_t *fromlen)
|
||||
}
|
||||
}
|
||||
}
|
||||
while(*tSLInformation.pucReceivedData == HCI_TYPE_EVNT);
|
||||
while (*tSLInformation.pucReceivedData == HCI_TYPE_EVNT);
|
||||
|
||||
nllvdbg("Done for Data 0x%x\n",usOpcode);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_WL_NRF24L01_CHECK_PARAMS
|
||||
# define CHECK_ARGS(cond) do { if (!(cond)) return -EINVAL; } while(0)
|
||||
# define CHECK_ARGS(cond) do { if (!(cond)) return -EINVAL; } while (0)
|
||||
#else
|
||||
# define CHECK_ARGS(cond)
|
||||
#endif
|
||||
@@ -1719,7 +1719,7 @@ ssize_t nrf24l01_recv(struct nrf24l01_dev_s *dev, uint8_t *buffer,
|
||||
static void binarycvt(char *deststr, const uint8_t *srcbin, size_t srclen)
|
||||
{
|
||||
int i = 0;
|
||||
while(i < srclen)
|
||||
while (i < srclen)
|
||||
{
|
||||
sprintf(deststr + i*2, "%02x", srcbin[i]);
|
||||
++i;
|
||||
|
||||
Reference in New Issue
Block a user