lkml.org 
[lkml]   [2022]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[v5 06/14] iio: event_monitor: add pitch, yaw and roll modifiers
    Date
    From: Andrea Merello <andrea.merello@iit.it>

    Following the introduction of pitch, yaw and roll IIO modifiers, update the
    event_monitor tool accordingly.

    Signed-off-by: Andrea Merello <andrea.merello@iit.it>
    ---
    tools/iio/iio_event_monitor.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c
    index 1fee44abb836..ee3f78c47655 100644
    --- a/tools/iio/iio_event_monitor.c
    +++ b/tools/iio/iio_event_monitor.c
    @@ -125,6 +125,9 @@ static const char * const iio_modifier_names[] = {
    [IIO_MOD_LINEAR_X] = "linear_x",
    [IIO_MOD_LINEAR_Y] = "linear_y",
    [IIO_MOD_LINEAR_Z] = "linear_z",
    + [IIO_MOD_PITCH] = "pitch",
    + [IIO_MOD_YAW] = "yaw",
    + [IIO_MOD_ROLL] = "roll",
    };

    static bool event_is_known(struct iio_event_data *event)
    --
    2.17.1
    \
     
     \ /
      Last update: 2022-04-26 15:12    [W:4.184 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site