From 7aefad6de9e9286ea72c44289884192bd3749a87 Mon Sep 17 00:00:00 2001 From: David Engster Date: Sun, 4 Feb 2018 12:32:51 +0100 Subject: [PATCH] kobo/device: Add field for natural light support Currently, only the Kobo Aura One has natural light. --- frontend/device/kobo/device.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index 8c69cbaba..9c9406416 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -6,6 +6,7 @@ local _ = require("gettext") local logger = require("logger") local function yes() return true end +local function no() return false end local function koboEnableWifi(toggle) if toggle == 1 then @@ -28,7 +29,9 @@ local Kobo = Generic:new{ -- enforce protrait mode on Kobos: isAlwaysPortrait = yes, -- the internal storage mount point users can write to - internal_storage_mount_point = "/mnt/onboard/" + internal_storage_mount_point = "/mnt/onboard/", + -- currently only Aura One has coloured frontlight + hasNaturalLight = no, } -- TODO: hasKeys for some devices? @@ -60,6 +63,7 @@ local KoboDaylight = Kobo:new{ touch_probe_ev_epoch_time = true, touch_phoenix_protocol = true, display_dpi = 300, + hasNaturalLight = yes, } -- Kobo Aura H2O: