aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/SPI-L3GD20
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-05-12 21:01:59 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-05-12 21:01:59 +0000
commitf5be820e9c8945c9995a917ede877b588c1cbba2 (patch)
tree8a8479874392a01bd04a568844b2979c30ed9865 /testhal/STM32/STM32F4xx/SPI-L3GD20
parentfde8d50497ecccbe399ff2f57e5789b487d210b9 (diff)
downloadChibiOS-f5be820e9c8945c9995a917ede877b588c1cbba2.tar.gz
ChibiOS-f5be820e9c8945c9995a917ede877b588c1cbba2.tar.bz2
ChibiOS-f5be820e9c8945c9995a917ede877b588c1cbba2.zip
Fixes an improvements to EX demos
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9471 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx/SPI-L3GD20')
-rw-r--r--testhal/STM32/STM32F4xx/SPI-L3GD20/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c b/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c
index fb4edfb21..e6e732898 100644
--- a/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c
+++ b/testhal/STM32/STM32F4xx/SPI-L3GD20/main.c
@@ -113,12 +113,13 @@ int main(void) {
*/
l3gd20Start(&L3GD20D1, &l3gd20cfg);
- while(!palReadLine(LINE_BUTTON)){
+ while(!palReadLine(LINE_BUTTON)) {
chprintf(chp, "Press BTN to calibrate gyroscope...\r\n");
chThdSleepMilliseconds(150);
#if CHPRINTF_USE_ANSI_CODE
chprintf(chp, "\033[2J\033[1;1H");
#endif
+ }
palClearLine(LINE_LED3);
chprintf(chp, "Calibrating Gyroscope sampling bias...\r\n");