Skip to content

Commit 36dfea1

Browse files
ubiedakartben
authored andcommitted
sensor: shell: Allow individual axis data to be processed
For the supported channels, instead of just allowing 3-axis data being printed out, allow individual channels to be processed (e.g: accel_x, gyro_y, etc). Signed-off-by: Luis Ubieda <[email protected]>
1 parent 4c9b6b6 commit 36dfea1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

drivers/sensor/sensor_shell.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -364,23 +364,6 @@ void sensor_shell_processing_callback(int result, uint8_t *buf, uint32_t buf_len
364364
size_t frame_size;
365365
uint16_t frame_count;
366366

367-
/* Channels with multi-axis equivalents are skipped */
368-
switch (ch.chan_type) {
369-
case SENSOR_CHAN_ACCEL_X:
370-
case SENSOR_CHAN_ACCEL_Y:
371-
case SENSOR_CHAN_ACCEL_Z:
372-
case SENSOR_CHAN_GYRO_X:
373-
case SENSOR_CHAN_GYRO_Y:
374-
case SENSOR_CHAN_GYRO_Z:
375-
case SENSOR_CHAN_MAGN_X:
376-
case SENSOR_CHAN_MAGN_Y:
377-
case SENSOR_CHAN_MAGN_Z:
378-
case SENSOR_CHAN_POS_DX:
379-
case SENSOR_CHAN_POS_DY:
380-
case SENSOR_CHAN_POS_DZ:
381-
continue;
382-
}
383-
384367
rc = decoder->get_size_info(ch, &base_size, &frame_size);
385368
if (rc != 0) {
386369
LOG_DBG("skipping unsupported channel %s:%d",

0 commit comments

Comments
 (0)