From fd316a5452b538e5c59a41dd15973897cb43384f Mon Sep 17 00:00:00 2001 From: Bartosz Bilas Date: Mon, 18 Oct 2021 19:23:31 +0200 Subject: [PATCH] drivers: sensor_shell: add missing power sensor channel There is no power channel within the name array that is used by e.g INA23X so let's add it to have support in sensor shell commands. Signed-off-by: Bartosz Bilas --- drivers/sensor/sensor_shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/sensor/sensor_shell.c b/drivers/sensor/sensor_shell.c index 8c8dc3ffa5f..039c649e8da 100644 --- a/drivers/sensor/sensor_shell.c +++ b/drivers/sensor/sensor_shell.c @@ -49,6 +49,7 @@ const char *sensor_channel_name[SENSOR_CHAN_ALL] = { [SENSOR_CHAN_GAS_RES] = "gas_resistance", [SENSOR_CHAN_VOLTAGE] = "voltage", [SENSOR_CHAN_CURRENT] = "current", + [SENSOR_CHAN_POWER] = "power", [SENSOR_CHAN_RESISTANCE] = "resistance", [SENSOR_CHAN_ROTATION] = "rotation", [SENSOR_CHAN_POS_DX] = "pos_dx",