Skip to content

Commit

Permalink
fix typo in gyro_init
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Nov 7, 2024
1 parent db0d48f commit 6cbdb9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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_int() {
uint8_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_int();
uint8_t gyro_init();
gyro_data_t gyro_read();
void gyro_calibrate();
2 changes: 1 addition & 1 deletion src/flight/sixaxis.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static filter_biquad_notch_t notch_filter[SDFT_AXES][SDFT_PEAKS];
static filter_biquad_state_t notch_filter_state[SDFT_AXES][SDFT_PEAKS];

bool sixaxis_detect() {
target_info.gyro_id = gyro_int();
target_info.gyro_id = gyro_init();
return target_info.gyro_id != GYRO_TYPE_INVALID;
}

Expand Down

0 comments on commit 6cbdb9a

Please sign in to comment.