diff --git a/src/driver/gyro/gyro.c b/src/driver/gyro/gyro.c index 080a583aa..c15935161 100644 --- a/src/driver/gyro/gyro.c +++ b/src/driver/gyro/gyro.c @@ -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; } diff --git a/src/driver/gyro/gyro.h b/src/driver/gyro/gyro.h index d2a4331ff..ffeac0561 100644 --- a/src/driver/gyro/gyro.h +++ b/src/driver/gyro/gyro.h @@ -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(); \ No newline at end of file