Skip to content

Commit

Permalink
iio.h: add IIO_MOD_O2 modifier to enum
Browse files Browse the repository at this point in the history
This started appearing in the builds:
  https://travis-ci.org/github/analogdevicesinc/libiio/jobs/736083344#L1133

The upstream kernel header got an update.
This change syncs it to libiio.

Updated in all bindings as well.

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Oct 17, 2020
1 parent a59a233 commit 8979da9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/csharp/Channel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public enum ChannelModifier
IIO_MOD_PM4,
IIO_MOD_PM10,
IIO_MOD_ETHANOL,
IIO_MOD_H2
IIO_MOD_H2,
IIO_MOD_O2
}

/// <summary><see cref="iio.Channel.ChannelType"/> class:
Expand Down
1 change: 1 addition & 0 deletions bindings/python/iio.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class ChannelModifier(Enum):
IIO_MOD_PM10 = 41
IIO_MOD_ETHANOL = 42
IIO_MOD_H2 = 43
IIO_MOD_O2 = 44


class ChannelType(Enum):
Expand Down
1 change: 1 addition & 0 deletions channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ static const char * const modifier_names[] = {
[IIO_MOD_CO2] = "co2",
[IIO_MOD_ETHANOL] = "ethanol",
[IIO_MOD_H2] = "h2",
[IIO_MOD_O2] = "h2",
[IIO_MOD_VOC] = "voc",
[IIO_MOD_PM1] = "pm1",
[IIO_MOD_PM2P5] = "pm2p5",
Expand Down
1 change: 1 addition & 0 deletions iio.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ enum iio_modifier {
IIO_MOD_PM10,
IIO_MOD_ETHANOL,
IIO_MOD_H2,
IIO_MOD_O2,
};

/* ---------------------------------------------------------------------------*/
Expand Down

0 comments on commit 8979da9

Please sign in to comment.