hadess / iio-sensor-proxy

IIO accelerometer sensor to input device proxy
198 stars 64 forks source link

orientation: correct handling of orientation on border #279

Closed FooBarrior closed 5 years ago

FooBarrior commented 5 years ago

The former code gave a priority to portrait orientation, i.e. if the portrait threshold reached, it always switched.

This is incorrect due to that landscape thresholds and portrait thresholds can (and they do) overlap. In the overlapping area we should respect previous value.

hadess commented 5 years ago

I've added a test and made the small changes I requested in https://github.com/hadess/iio-sensor-proxy/pull/283

Just needs testing now