From 29ad4508ef7acac4433f64e25fb84c374e47df16 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sun, 20 Nov 2016 16:03:34 +0000 Subject: [PATCH] Updated LIS3MDL and LSM6DS0 related demos git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9931 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c | 4 ++-- testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c b/testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c index 5a8d68880..fa767e48a 100644 --- a/testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c +++ b/testex/STM32/STM32L4xx/I2C-LIS3MLD/main.c @@ -46,8 +46,8 @@ static const I2CConfig i2ccfg = { static LIS3MDLConfig LIS3MDLcfg = { &I2CD1, /* Pointer to I2C Driver.*/ &i2ccfg, /* Pointer to I2C Configuration.*/ - {0, 0, 0}, /* Use default sensitivity.*/ - {0, 0, 0}, /* Use default bias.*/ + NULL, /* Use default sensitivity.*/ + NULL, /* Use default bias.*/ LIS3MDL_SAD_VCC, /* Slave address.*/ LIS3MDL_FS_4GA, /* Full scale value.*/ LIS3MDL_ODR_40HZ, /* Output data rate.*/ diff --git a/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c b/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c index f8e156dde..5c2626ffe 100644 --- a/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c +++ b/testex/STM32/STM32L4xx/I2C-LSM6DS0/main.c @@ -46,8 +46,8 @@ static const I2CConfig i2ccfg = { }; static const LSM6DS0AccConfig lsm6ds0acccfg = { - {0, 0, 0}, /* Use default sensitivity.*/ - {0, 0, 0}, /* Use default bias.*/ + NULL, /* Use default sensitivity.*/ + NULL, /* Use default bias.*/ LSM6DS0_ACC_FS_2G, /* Full scale value 2g.*/ LSM6DS0_ACC_ODR_50Hz, /* Output data rate 100 Hz.*/ #if LSM6DS0_ACC_USE_ADVANCED || defined(__DOXYGEN__)