Skip to content

Commit

Permalink
Revert "fix ordering of static void"
Browse files Browse the repository at this point in the history
This reverts commit a7d454c.
  • Loading branch information
phansel authored and phansel committed Dec 17, 2024
1 parent b50c761 commit 57e475b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sensor_mpu9250.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ enum {

static struct task_wake mpu9250_wake;

static void
read_mpu(struct i2cdev_s *i2c, uint8_t reg_len, uint8_t *reg
, uint8_t read_len, uint8_t *read)
{
int ret = i2c_dev_read(i2c, reg_len, reg, read_len, read);
i2c_shutdown_on_err(ret);
}

static void
autodetect_mpu_icm(struct mpu9250 *mp)
{
Expand Down Expand Up @@ -114,6 +106,14 @@ mp9250_reschedule_timer(struct mpu9250 *mp)
irq_enable();
}

static void
read_mpu(struct i2cdev_s *i2c, uint8_t reg_len, uint8_t *reg
, uint8_t read_len, uint8_t *read)
{
int ret = i2c_dev_read(i2c, reg_len, reg, read_len, read);
i2c_shutdown_on_err(ret);
}

// Reads the fifo byte count from the device.
static uint16_t
get_fifo_status(struct mpu9250 *mp)
Expand Down

0 comments on commit 57e475b

Please sign in to comment.