mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Kindle Scribe: improve gyro detection, replace accel with acc keyword (#11696)
Fixes #11691.
This commit is contained in:
@@ -1429,7 +1429,7 @@ function KindleScribe:init()
|
||||
end
|
||||
end
|
||||
-- Get accelerometer device
|
||||
local std_out = io.popen("grep -A4 'accel' /proc/bus/input/devices | grep -o 'event[0-9]'", "r")
|
||||
local std_out = io.popen("grep -A4 'acc' /proc/bus/input/devices | grep -o 'event[0-9]'", "r")
|
||||
if std_out then
|
||||
local gyro_dev = std_out:read("*line")
|
||||
std_out:close()
|
||||
|
||||
Reference in New Issue
Block a user