From 0da097bb037fd197d5c2c16b58b64999512c77fb Mon Sep 17 00:00:00 2001 From: Luis Ubieda Date: Thu, 9 May 2024 19:02:57 -0400 Subject: [PATCH] shell: sensor: fix Get command using channel specifiers Re-establishes the Shell functionality of sensor get command. Signed-off-by: Luis Ubieda --- drivers/sensor/sensor_shell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/sensor/sensor_shell.c b/drivers/sensor/sensor_shell.c index 84d11f152c23a8..8b26b1fed8d85e 100644 --- a/drivers/sensor/sensor_shell.c +++ b/drivers/sensor/sensor_shell.c @@ -336,7 +336,6 @@ void sensor_shell_processing_callback(int result, uint8_t *buf, uint32_t buf_len uint32_t fit = 0; size_t base_size; size_t frame_size; - size_t channel_idx = 0; uint16_t frame_count; /* Channels with multi-axis equivalents are skipped */ @@ -504,7 +503,7 @@ void sensor_shell_processing_callback(int result, uint8_t *buf, uint32_t buf_len PRIsensor_q31_data_arg(*data, 0)); } } - ++channel_idx; + ++ch.chan_idx; } } }