[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [4309] fixed indentation
From: |
antoine drouin |
Subject: |
[paparazzi-commits] [4309] fixed indentation |
Date: |
Thu, 05 Nov 2009 13:46:50 +0000 |
Revision: 4309
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4309
Author: poine
Date: 2009-11-05 13:46:49 +0000 (Thu, 05 Nov 2009)
Log Message:
-----------
fixed indentation
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/i2c.h
Modified: paparazzi3/trunk/sw/airborne/i2c.h
===================================================================
--- paparazzi3/trunk/sw/airborne/i2c.h 2009-11-05 11:59:56 UTC (rev 4308)
+++ paparazzi3/trunk/sw/airborne/i2c.h 2009-11-05 13:46:49 UTC (rev 4309)
@@ -56,7 +56,7 @@
if (i2c0_index < i2c0_len_r) { \
i2c0_buf[i2c0_index] = I2C_DATA_REG; \
i2c0_index++; \
- I2c0Receive(i2c0_index < i2c0_len_r - 1);
\
+ I2c0Receive(i2c0_index < i2c0_len_r - 1); \
}
\
else { \
/* error , we should have got NACK */ \
@@ -77,18 +77,18 @@
I2c0SendByte(i2c0_buf[i2c0_index]); \
i2c0_index++; \
} else { \
- if (i2c0_trx) { \
- i2c0_trx = 0; \
- i2c0_index = 0; \
- i2c0_slave_addr |= 1; \
- I2c0SendStart(); \
- } else { \
- if (i2c0_stop_after_transmit) { \
- I2c0SendStop(); \
- } else { \
- I2c0Finished(); \
- } \
- } \
+ if (i2c0_trx) {
\
+ i2c0_trx = 0;
\
+ i2c0_index = 0; \
+ i2c0_slave_addr |= 1;
\
+ I2c0SendStart(); \
+ } else { \
+ if (i2c0_stop_after_transmit) { \
+ I2c0SendStop(); \
+ } else { \
+ I2c0Finished(); \
+ } \
+ } \
}
\
break; \
case I2C_MR_DATA_NACK: \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [4309] fixed indentation,
antoine drouin <=