From f4240dafa9d5afd446aea3a70a4ea082f6ed2420 Mon Sep 17 00:00:00 2001 From: Vasyl Vavrychuk Date: Fri, 23 Jul 2021 10:35:28 +0200 Subject: Fix channel names for sensors devices. Clearly channel names for gyroscope and compass were swapped. Bug-AGL: SPEC-3865 Change-Id: I8cf281486ffcc97f28ff49f33027cc9fa0bd7b04 Signed-off-by: Vasyl Vavrychuk --- binding/iiodevices-binding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding/iiodevices-binding.c b/binding/iiodevices-binding.c index 516b172..000191e 100644 --- a/binding/iiodevices-binding.c +++ b/binding/iiodevices-binding.c @@ -77,8 +77,8 @@ static struct client_sub * last_client = NULL; /* Static definition of supported iiodevices */ static struct iio_info iio_infos[] = { { "16-001d", "acceleration", "accel"}, - { "16-001d", "gyroscope", "magn"}, - { "16-006b", "compass", "anglvel"}, + { "16-001d", "gyroscope", "anglvel"}, + { "16-006b", "compass", "magn"}, { "asm330lhh_accel", "acceleration", "accel"}, { "asm330lhh_gyro", "gyroscope", "anglvel"}, }; -- cgit 1.2.3-korg