diff --git a/reader.lua b/reader.lua index b23753e1f..6aeffcbd4 100755 --- a/reader.lua +++ b/reader.lua @@ -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