Tidy-up macro semicol usage

This commit is contained in:
George Oikonomou 2015-05-01 15:46:43 +01:00
parent 0b6813513c
commit 7641aa89f2

View file

@ -88,7 +88,7 @@
#define SWAP(v) ((LO_UINT16(v) << 8) | HI_UINT16(v)) #define SWAP(v) ((LO_UINT16(v) << 8) | HI_UINT16(v))
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#define SELECT() board_i2c_select(BOARD_I2C_INTERFACE_0, SENSOR_I2C_ADDRESS); #define SELECT() board_i2c_select(BOARD_I2C_INTERFACE_0, SENSOR_I2C_ADDRESS)
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static uint8_t buf[DATA_SIZE]; static uint8_t buf[DATA_SIZE];
static uint16_t val; static uint16_t val;
@ -124,7 +124,7 @@ enable_sensor(bool enable)
{ {
bool success; bool success;
SELECT() SELECT();
if(enable) { if(enable) {
val = TMP007_VAL_CONFIG_ON; val = TMP007_VAL_CONFIG_ON;