Skip to content

Commit fd316a5

Browse files
bbilasnashif
authored andcommitted
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 <[email protected]>
1 parent d711d22 commit fd316a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/sensor/sensor_shell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const char *sensor_channel_name[SENSOR_CHAN_ALL] = {
4949
[SENSOR_CHAN_GAS_RES] = "gas_resistance",
5050
[SENSOR_CHAN_VOLTAGE] = "voltage",
5151
[SENSOR_CHAN_CURRENT] = "current",
52+
[SENSOR_CHAN_POWER] = "power",
5253
[SENSOR_CHAN_RESISTANCE] = "resistance",
5354
[SENSOR_CHAN_ROTATION] = "rotation",
5455
[SENSOR_CHAN_POS_DX] = "pos_dx",

0 commit comments

Comments
 (0)