mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Kobo: Flag all the boards similar to the Libra 2 as unreliable (Clara 2E
& Nia). And also disable the jump marker on those, like we did for the Libra 2.
This commit is contained in:
@@ -428,6 +428,7 @@ local KoboLuna = Kobo:extend{
|
||||
hasFrontlight = yes,
|
||||
touch_phoenix_protocol = true,
|
||||
display_dpi = 212,
|
||||
hasReliableMxcWaitFor = no, -- Board is similar to the Libra 2, but it's such an unpopular device that reports are scarce.
|
||||
}
|
||||
|
||||
-- Kobo Elipsa
|
||||
@@ -534,6 +535,9 @@ local KoboGoldfinch = Kobo:extend{
|
||||
},
|
||||
battery_sysfs = "/sys/class/power_supply/battery",
|
||||
power_dev = "/dev/input/by-path/platform-bd71828-pwrkey-event",
|
||||
-- Board is eerily similar to the Libra 2, which, unfortunately, means it's also buggy as hell...
|
||||
-- c.f., https://github.com/koreader/koreader/issues/9552#issuecomment-1293000313
|
||||
hasReliableMxcWaitFor = no,
|
||||
}
|
||||
|
||||
function Kobo:setupChargingLED()
|
||||
|
||||
@@ -7,7 +7,7 @@ local lfs = require("libs/libkoreader-lfs")
|
||||
local logger = require("logger")
|
||||
|
||||
-- Date at which the last migration snippet was added
|
||||
local CURRENT_MIGRATION_DATE = 20220930
|
||||
local CURRENT_MIGRATION_DATE = 20221027
|
||||
|
||||
-- Retrieve the date of the previous migration, if any
|
||||
local last_migration_date = G_reader_settings:readSetting("last_migration_date", 0)
|
||||
@@ -479,5 +479,15 @@ if last_migration_date < 20220930 then
|
||||
end
|
||||
end
|
||||
|
||||
-- Extend the 20220205 hack to *all* the devices flagged as unreliable...
|
||||
if last_migration_date < 20221027 then
|
||||
logger.info("Performing one-time migration for 20221027")
|
||||
|
||||
local Device = require("device")
|
||||
if Device:isKobo() and not Device:hasReliableMxcWaitFor() then
|
||||
G_reader_settings:makeFalse("followed_link_marker")
|
||||
end
|
||||
end
|
||||
|
||||
-- We're done, store the current migration date
|
||||
G_reader_settings:saveSetting("last_migration_date", CURRENT_MIGRATION_DATE)
|
||||
|
||||
Reference in New Issue
Block a user