diff --git a/src/lib/io/include/sol-iio.h b/src/lib/io/include/sol-iio.h old mode 100755 new mode 100644 diff --git a/src/lib/io/sol-iio.c b/src/lib/io/sol-iio.c index f365f61c3..3e8008dfc 100755 --- a/src/lib/io/sol-iio.c +++ b/src/lib/io/sol-iio.c @@ -584,11 +584,22 @@ channel_get_pure_name(const char *name) channel_name[sizeof(channel_name) - 1] = '\0'; channel_name_len = strlen(channel_name); - if (strendswith(channel_name, "_both")) { + if (strendswith(channel_name, "_green")) { + channel_name[channel_name_len - 6] = '\0'; + modified = true; + } + + if (strendswith(channel_name, "_both") || + strendswith(channel_name, "_blue")) { channel_name[channel_name_len - 5] = '\0'; modified = true; } + if (strendswith(channel_name, "_red")) { + channel_name[channel_name_len - 4] = '\0'; + modified = true; + } + if (strendswith(channel_name, "_ir") || strendswith(channel_name, "_uv")) { channel_name[channel_name_len - 3] = '\0'; diff --git a/src/modules/flow/iio/iio.json b/src/modules/flow/iio/iio.json old mode 100755 new mode 100644 diff --git a/src/modules/flow/iio/nodes.c b/src/modules/flow/iio/nodes.c old mode 100755 new mode 100644