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 <b.bilas@grinn-global.com>
This commit is contained in:
parent
d711d224c2
commit
fd316a5452
1 changed files with 1 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue