From 467e65be3de2f7ba36232d78686cc65dab6002f7 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Wed, 4 May 2016 17:59:52 +0200 Subject: [PATCH] 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 --- frontend/device/kobo/device.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index 8f96561ef..ed327509a 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -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