From ef5c8ced603f9758f61613f4862189279883efba Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Tue, 27 Sep 2016 00:20:13 -0700 Subject: [PATCH] chore: disable wrong usbplug event handler --- frontend/device/kobo/device.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index 37f7a2a56..b46cfdaa9 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -130,13 +130,6 @@ function Kobo:init() return "Light" end end, - [330] = function(ev) - if self.input:isEvKeyPress(ev) then - return "USBPlugIn" - else - return "USBPlugOut" - end - end, [102] = "Home", [116] = "Power", } @@ -144,6 +137,7 @@ function Kobo:init() Generic.init(self) + -- event2 is for MMA7660 sensor (3-Axis Orientation/Motion Detection) self.input.open("/dev/input/event0") -- Light button and sleep slider self.input.open("/dev/input/event1")