Skip to content

Commit 6d5f6a8

Browse files
committed
Fix issue in 6D Orientation example
1 parent 88f41ac commit 6d5f6a8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/LSM6DSV16X_6D_Orientation/LSM6DSV16X_6D_Orientation.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void sendOrientation()
8888
LSM6DSV16X.Get_6D_Orientation_ZL(&zl);
8989
LSM6DSV16X.Get_6D_Orientation_ZH(&zh);
9090

91-
if (xl == 1 && yl == 0 && zl == 0 && xh == 0 && yh == 0 && zh == 0) {
91+
if (xl == 0 && yl == 0 && zl == 0 && xh == 0 && yh == 1 && zh == 0) {
9292
sprintf(report, "\r\n ________________ " \
9393
"\r\n | | " \
9494
"\r\n | * | " \
@@ -99,7 +99,7 @@ void sendOrientation()
9999
"\r\n |________________| \r\n");
100100
}
101101

102-
else if (xl == 0 && yl == 1 && zl == 0 && xh == 0 && yh == 0 && zh == 0) {
102+
else if (xl == 1 && yl == 0 && zl == 0 && xh == 0 && yh == 0 && zh == 0) {
103103
sprintf(report, "\r\n ________________ " \
104104
"\r\n | | " \
105105
"\r\n | * | " \
@@ -110,7 +110,7 @@ void sendOrientation()
110110
"\r\n |________________| \r\n");
111111
}
112112

113-
else if (xl == 0 && yl == 0 && zl == 0 && xh == 0 && yh == 1 && zh == 0) {
113+
else if (xl == 0 && yl == 0 && zl == 0 && xh == 1 && yh == 0 && zh == 0) {
114114
sprintf(report, "\r\n ________________ " \
115115
"\r\n | | " \
116116
"\r\n | | " \
@@ -121,7 +121,7 @@ void sendOrientation()
121121
"\r\n |________________| \r\n");
122122
}
123123

124-
else if (xl == 0 && yl == 0 && zl == 0 && xh == 1 && yh == 0 && zh == 0) {
124+
else if (xl == 0 && yl == 1 && zl == 0 && xh == 0 && yh == 0 && zh == 0) {
125125
sprintf(report, "\r\n ________________ " \
126126
"\r\n | | " \
127127
"\r\n | | " \
@@ -144,7 +144,7 @@ void sendOrientation()
144144
}
145145

146146
else {
147-
sprintf(report, "None of the 6D orientation axes is set in accelrometer.\r\n");
147+
sprintf(report, "None of the 6D orientation axes is set in accelerometer.\r\n");
148148
}
149149

150150
Serial.print(report);

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=STM32duino LSM6DSV16X
2-
version=1.7.2
2+
version=1.7.3
33
author=SRA
44
maintainer=stm32duino
55
sentence=Ultra Low Power inertial measurement unit.

0 commit comments

Comments
 (0)