Merge pull request #625 from hwhw/master

fail gracefully when the Kobo light device cannot be opened
pull/627/head
Huang Xin 10 years ago
commit c777d8ab3a

@ -13,7 +13,8 @@ local KoboPowerD = BasePowerD:new{
}
function KoboPowerD:init()
self.fl = kobolight.open()
local ok, light = pcall(kobolight.open)
if ok then self.fl = light end
end
function KoboPowerD:toggleFrontlight()

Loading…
Cancel
Save