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
This commit is contained in:
1 parent
c6d68e381f
commit
467e65be3d
1 file changed
+9
@@ -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
|
||||
Reference in new issue
Block a user