Skip to content

Commit

Permalink
fix compilation without USE_GYRO
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Apr 11, 2024
1 parent 0769d39 commit eb85ba6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/driver/spi_gyro.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,8 @@ void gyro_spi_calibrate() {
break;
}
}
#else
float gyro_update_period() {
return 250.0f;
}
#endif
5 changes: 3 additions & 2 deletions src/flight/sixaxis.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,10 @@ void sixaxis_acc_cal() {

#else

bool sixaxis_init() {
return false;
bool sixaxis_detect() {
return true;
}
void sixaxis_init() {}
void sixaxis_read() {}

void sixaxis_gyro_cal() {}
Expand Down

0 comments on commit eb85ba6

Please sign in to comment.