Skip to content
Commit 919b3f91 authored by Bartosz Bilas's avatar Bartosz Bilas Committed by Maureen Helm
Browse files

drivers: sensor: ina23x: fix sample fetching



Fix the usage of sensor shell module that calls sensor_sample_fetch
function with SENSOR_CHAN_ALL id which is not supported and
causes the following error:

uart:~$ sensor get INA237 current
Failed to read sensor: -134
channel idx=31 current =   0.000000

Fix that by adding support for SENSOR_CHAN_ALL channel id.

Signed-off-by: default avatarBartosz Bilas <b.bilas@grinn-global.com>
parent 262b5b19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment