Skip to content

Commit

Permalink
Arrange variables in reverse Christmas tree
Browse files Browse the repository at this point in the history
Co-Authored-By: Crt Mori <[email protected]>
  • Loading branch information
adnan-ashraf and Letme committed Aug 6, 2024
1 parent 9c79d86 commit fe7017a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mlx90632.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ int32_t mlx90632_trigger_measurement(void)

int32_t mlx90632_wait_for_measurement(void)
{
int32_t ret;
uint16_t reg_status;
int tries = MLX90632_MAX_NUMBER_MESUREMENT_READ_TRIES;
uint16_t reg_status;
int32_t ret;

while (tries-- > 0)
{
Expand Down Expand Up @@ -607,9 +607,9 @@ int32_t mlx90632_trigger_measurement_burst(void)

int32_t mlx90632_wait_for_measurement_burst(void)
{
int32_t ret;
uint16_t reg_status;
int tries = MLX90632_MAX_NUMBER_MESUREMENT_READ_TRIES;
uint16_t reg_status;
int32_t ret;

while (tries-- > 0)
{
Expand Down Expand Up @@ -652,8 +652,8 @@ int32_t mlx90632_start_measurement_burst(void)

int32_t mlx90632_trigger_measurement_single(void)
{
int32_t ret;
uint16_t reg;
int32_t ret;

// Clear NEW_DATA flag
ret = mlx90632_trigger_measurement();
Expand Down Expand Up @@ -768,8 +768,8 @@ mlx90632_meas_t mlx90632_get_refresh_rate(void)

int32_t mlx90632_get_channel_position(void)
{
int32_t ret;
uint16_t reg_status;
int32_t ret;

ret = mlx90632_i2c_read(MLX90632_REG_STATUS, &reg_status);
if (ret < 0)
Expand Down

0 comments on commit fe7017a

Please sign in to comment.