diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-12 12:53:19 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-12 12:53:19 -0600 |
commit | 5fbbc21f13770cc35c3e61e3109c125d03f172eb (patch) | |
tree | 1c1278108c7fe21ea7534a274a6994ae4ed2b6cc /nuttx/drivers/analog | |
parent | 387c4ace106479e457033b1717051ec55b8d673e (diff) | |
download | px4-nuttx-5fbbc21f13770cc35c3e61e3109c125d03f172eb.tar.gz px4-nuttx-5fbbc21f13770cc35c3e61e3109c125d03f172eb.tar.bz2 px4-nuttx-5fbbc21f13770cc35c3e61e3109c125d03f172eb.zip |
Make sure that there is one space between if and condition
Diffstat (limited to 'nuttx/drivers/analog')
-rw-r--r-- | nuttx/drivers/analog/dac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/drivers/analog/dac.c b/nuttx/drivers/analog/dac.c index 31d1242e7..2714f2135 100644 --- a/nuttx/drivers/analog/dac.c +++ b/nuttx/drivers/analog/dac.c @@ -398,19 +398,19 @@ static ssize_t dac_write(FAR struct file *filep, FAR const char *buffer, size_t fifo->af_buffer[fifo->af_tail].am_data=*(uint32_t *)&buffer[nsent]; fifo->af_buffer[fifo->af_tail].am_data&=0xffffff00; } - else if(msglen == 3) + else if (msglen == 3) { fifo->af_buffer[fifo->af_tail].am_channel=buffer[nsent]; fifo->af_buffer[fifo->af_tail].am_data=(*(uint16_t *)&buffer[nsent+1]); fifo->af_buffer[fifo->af_tail].am_data<<=16; } - else if(msglen == 2) + else if (msglen == 2) { fifo->af_buffer[fifo->af_tail].am_channel=0; fifo->af_buffer[fifo->af_tail].am_data=(*(uint16_t *)&buffer[nsent]); fifo->af_buffer[fifo->af_tail].am_data<<=16; } - else if(msglen == 1) + else if (msglen == 1) { fifo->af_buffer[fifo->af_tail].am_channel=0; fifo->af_buffer[fifo->af_tail].am_data=buffer[nsent]; |