From 4ae43aee2c084e31aa1134a2c92d20f7681fdfcc Mon Sep 17 00:00:00 2001 From: frio Date: Sat, 10 Nov 2018 23:31:24 +1300 Subject: [PATCH] [fix, cervantes] Old Cervantes devices should return false for hasNaturalLights (#4320) --- frontend/device/cervantes/device.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/device/cervantes/device.lua b/frontend/device/cervantes/device.lua index e724342a7..f8badb3ca 100644 --- a/frontend/device/cervantes/device.lua +++ b/frontend/device/cervantes/device.lua @@ -3,6 +3,7 @@ local TimeVal = require("ui/timeval") local logger = require("logger") local function yes() return true end +local function no() return false end local function getProductId() local ntxinfo_pcb = io.popen("/usr/bin/ntxinfo /dev/mmcblk0 | grep pcb | cut -d ':' -f2", "r") @@ -21,6 +22,7 @@ local Cervantes = Generic:new{ touch_switch_xy = true, touch_mirrored_x = true, touch_probe_ev_epoch_time = true, + hasNaturalLight = no, hasOTAUpdates = yes, hasKeys = yes, internal_storage_mount_point = "/mnt/public/",