sensors: shell: use SENSOR_CHANNEL_3_AXIS whenever possible
Instead of specifying 3 axis channels manually, use `SENSOR_CHANNEL_3_AXIS` instead. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
parent
c13105750d
commit
4e7168028b
1 changed files with 1 additions and 2 deletions
|
@ -984,8 +984,7 @@ static void data_ready_trigger_handler(const struct device *sensor,
|
|||
continue;
|
||||
}
|
||||
/* Skip 3 axis channels */
|
||||
if (i == SENSOR_CHAN_ACCEL_XYZ || i == SENSOR_CHAN_GYRO_XYZ ||
|
||||
i == SENSOR_CHAN_MAGN_XYZ) {
|
||||
if (SENSOR_CHANNEL_3_AXIS(i)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue