mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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