Skip to content
Commit 03d0b982 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Maureen Helm
Browse files

drivers: sensor: lis3mdl: return -ENOTSUP on unsupported channels



sensor_channel_get() API should return -ENOTSUP when requested channel
is not supported. This behavior allows to use `sensor get DEVNAME` shell
command easily, as all unsupported channels are filtered out.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent 8b2f5f09
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment