Log what we actually open

reviewable/pr11807/r1
NiLuJe 3 weeks ago
parent c97a6c8136
commit 9983df5b23

@ -218,6 +218,7 @@ function Kindle:openInputDevices()
for i = 0, tonumber(dev_count[0]) - 1 do
local dev = devices[i]
if dev.matched then
logger.dbg("Opening input device", ffi.string(dev.name), "@", ffi.string(dev.path))
self.input.open(dev.path)
end
end

@ -868,8 +868,10 @@ function Kobo:init()
if dev.matched then
-- We need to single out whichever device provides pagination buttons or sleep cover events, as we'll want to tweak key repeat there...
if bit.band(dev.type, C.INPUT_PAGINATION_BUTTONS) ~= 0 or bit.band(dev.type, C.INPUT_SLEEP_COVER) ~= 0 then
logger.dbg("Opening (ntx_fd) input device", ffi.string(dev.name), "@", ffi.string(dev.path))
self.ntx_fd = self.input.open(dev.path)
else
logger.dbg("Opening input device", ffi.string(dev.name), "@", ffi.string(dev.path))
self.input.open(dev.path)
end
end

Loading…
Cancel
Save