aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex/ST/lsm6ds0.c
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-03-14 16:43:47 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-03-14 16:43:47 +0000
commit2cdf2e4fa873094b65be56703773e2a3f1490afa (patch)
tree4fdac714282b3bc31b111dddf39e01bdae468343 /os/ex/ST/lsm6ds0.c
parentf04e169af85bdb7f6a9177069f9f7a134c06b492 (diff)
downloadChibiOS-2cdf2e4fa873094b65be56703773e2a3f1490afa.tar.gz
ChibiOS-2cdf2e4fa873094b65be56703773e2a3f1490afa.tar.bz2
ChibiOS-2cdf2e4fa873094b65be56703773e2a3f1490afa.zip
Fixed vmt related code. Indent minor fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9102 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ex/ST/lsm6ds0.c')
-rw-r--r--os/ex/ST/lsm6ds0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/ex/ST/lsm6ds0.c b/os/ex/ST/lsm6ds0.c
index bc68c0aa1..4aa7a7eb0 100644
--- a/os/ex/ST/lsm6ds0.c
+++ b/os/ex/ST/lsm6ds0.c
@@ -338,7 +338,7 @@ static msg_t acc_read_cooked(void *ip, float axes[]) {
return msg;
}
-static const struct LSM6DS0ACCVMT accvmt = {
+static const struct LSM6DS0ACCVMT vmt_baseaccelerometer = {
acc_get_axes_number, acc_read_raw, acc_read_cooked
};
@@ -355,7 +355,7 @@ static const struct LSM6DS0ACCVMT accvmt = {
*/
void lsm6ds0ObjectInit(LSM6DS0Driver *devp) {
- devp->vmtac = &accvmt;
+ devp->vmt_baseaccelerometer = &vmt_baseaccelerometer;
devp->state = LSM6DS0_STOP;
devp->config = NULL;
}