From 99ae7e45bc1af0540b4ddcc4c07af94fc96220eb Mon Sep 17 00:00:00 2001 From: bkleiner Date: Mon, 9 Dec 2024 17:48:09 +0100 Subject: [PATCH] gyro: use typedef --- src/driver/gyro/gyro.c | 2 +- src/driver/gyro/gyro.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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