mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
Use generic FileExists()
This change should have been in the previous commit, sorry.
This commit is contained in:
parent
2fdecb7b40
commit
b297ee2c71
@ -104,9 +104,8 @@ else
|
||||
input.open("/dev/input/event1")
|
||||
|
||||
-- check if we are running on Kindle 3 (additional volume input)
|
||||
local f=lfs.attributes("/dev/input/event2")
|
||||
if f then
|
||||
print("Auto-detected Kindle 3")
|
||||
if FileExists("/dev/input/event2") then
|
||||
Debug("Auto-detected Kindle 3")
|
||||
input.open("/dev/input/event2")
|
||||
setK3Keycodes()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user