Don't crash on the Kobo Touch 2.0

I wouldn't go so far as to say "support", though, since I don't have the
device, and the touch protocol might be wrong ;).

re #2005
pull/2030/head
NiLuJe 8 years ago
parent c6d68e381f
commit 467e65be3d

@ -80,6 +80,12 @@ local KoboAlyssum = Kobo:new{
display_dpi = 300,
}
-- Kobo Touch 2.0:
local KoboPika = Kobo:new{
model = "Kobo_pika",
touch_phoenix_protocol = true,
}
function Kobo:init()
self.screen = require("ffi/framebuffer_mxcfb"):new{device = self, debug = dbg}
self.powerd = require("device/kobo/powerd"):new{device = self}
@ -211,6 +217,9 @@ elseif codename == "pixie" then
return KoboPixie
elseif codename == "alyssum" then
return KoboAlyssum
elseif codename == "pika" then
return KoboPika
else
else
error("unrecognized Kobo model "..codename)
end

Loading…
Cancel
Save