Skip to content

Commit

Permalink
gyro: use typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Dec 9, 2024
1 parent ddbef02 commit 3d16b9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/driver/gyro/gyro.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static gyro_types_t gyro_spi_detect() {
return type;
}

uint8_t gyro_init() {
gyro_types_t gyro_init() {
if (!target_gyro_spi_device_valid(&target.gyro)) {
return GYRO_TYPE_INVALID;
}
Expand Down
2 changes: 1 addition & 1 deletion src/driver/gyro/gyro.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ extern gyro_types_t gyro_type;
float gyro_update_period();
bool gyro_exti_state();

uint8_t gyro_init();
gyro_types_t gyro_init();
gyro_data_t gyro_read();
void gyro_calibrate();

0 comments on commit 3d16b9d

Please sign in to comment.