aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32L4xx/SPI-L3GD20/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32L4xx/SPI-L3GD20/main.c')
-rw-r--r--testhal/STM32/STM32L4xx/SPI-L3GD20/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32L4xx/SPI-L3GD20/main.c b/testhal/STM32/STM32L4xx/SPI-L3GD20/main.c
index b7a837c80..464f5d550 100644
--- a/testhal/STM32/STM32L4xx/SPI-L3GD20/main.c
+++ b/testhal/STM32/STM32L4xx/SPI-L3GD20/main.c
@@ -119,14 +119,14 @@ int main(void) {
}
palClearLine(LINE_LED_RED);
- chprintf(chp, "Calibrating Gyroscope...\r\n");
+ chprintf(chp, "Calibrating Gyroscope sampling bias...\r\n");
chprintf(chp, "Keep it in the rest position while red LED is on\r\n");
chThdSleepMilliseconds(3000);
palSetLine(LINE_LED_RED);
chThdSleepMilliseconds(1000);
- gyroscopeCalibrate(&L3GD20D1);
+ gyroscopeSampleBias(&L3GD20D1);
palClearLine(LINE_LED_RED);
#if CHPRINTF_USE_ANSI_CODE
chprintf(chp, "\033[2J\033[1;1H");