mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
Run uncrustify through ADXL346 driver.
This commit is contained in:
parent
70d94133ea
commit
2b3cab18f4
@ -186,7 +186,7 @@ adxl346_is_present(void)
|
||||
i2c_single_send(ADXL346_ADDRESS, ADXL346_DEVID_ADDR);
|
||||
i2c_single_receive(ADXL346_ADDRESS, &is_present);
|
||||
|
||||
return (is_present == ADXL346_DEVID_VALUE);
|
||||
return is_present == ADXL346_DEVID_VALUE;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static int16_t
|
||||
@ -212,7 +212,7 @@ adxl346_convert_accel(int16_t accel)
|
||||
|
||||
result = (1000 * accel) / 256;
|
||||
|
||||
return (int16_t) result;
|
||||
return (int16_t)result;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
@ -235,7 +235,7 @@ adxl346_calibrate_offset(void)
|
||||
i2c_burst_send(ADXL346_ADDRESS, config, sizeof(config));
|
||||
|
||||
uint16_t i;
|
||||
for (i = 0; i < 100; i++) {
|
||||
for(i = 0; i < 100; i++) {
|
||||
uint16_t x, y, z;
|
||||
|
||||
x = adxl346_read_accel(ADXL346_DATAX0_ADDR, ADXL346_DATAX1_ADDR);
|
||||
@ -265,7 +265,6 @@ adxl346_calibrate_offset(void)
|
||||
config[1] = -offset;
|
||||
i2c_burst_send(ADXL346_ADDRESS, config, sizeof(config));
|
||||
PRINTF("ADXL346: Z calibration offset is %d\n", offset);
|
||||
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user