termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

Can't listen to "Orientation" sensor with -s flag

Open PalaBeaveR opened this issue 2 years ago • 1 comments

Problem description Trying to listen to the "Orientation" sensor with -s flag, instead listens to "DeviceOrientation" sensor even though there's an exact match.

image

If listening with the -a flag, the "Orientation" sensor works as expected.

Steps to reproduce

  1. Have both "Orientation" and "DeviceOrientation" sensors
  2. run termux-sensor -s "Orientation"

Expected behavior The "Orientation" sensor is used instead of "DeviceOrientation".

Additional information

  • termux-api application version: 0.50.1
  • termux-api package version (installed through apt): 0.57
  • Android OS version: 9
  • Device model: Redmi Note 5

PalaBeaveR avatar Dec 29 '22 10:12 PalaBeaveR