[PB] Fix WAIT_FOR_UPDATE_COMPLETE ioctl (#6669)

* Fix WAIT_FOR_COMPLETE ioctl (fix #6000)

* Prevent a promotion to a flashing on fg/bg toggle

* Bump base for the matching PB updates

(https://github.com/koreader/koreader-base/pull/1188)
reviewable/pr6686/r1
NiLuJe 4 years ago committed by GitHub
parent 4d53ec76fe
commit 23efabb913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 50a965c28fd5ea2100257aa9ce2e62c9c301155c
Subproject commit 7c380d0590ce51795513c3fc12bc6f36a2d9a131

@ -36,13 +36,15 @@ local PocketBook = Generic:new{
-- all devices that have warmth lights use inkview api
hasNaturalLightApi = yes,
-- Apparently, HW inversion is a pipedream on PB (#6669)
canHWInvert = no,
}
-- Make sure the C BB cannot be used on devices with a 24bpp fb
function PocketBook:blacklistCBB()
-- As well as on those than can't do HW inversion, as otherwise NightMode would be ineffective.
--- @fixme Either relax the HWInvert check, or actually enable HWInvert on PB if it's safe and it works,
-- as, currently, no PB device is marked as canHWInvert, so, the C BB is essentially *always* blacklisted.
--- @note: Since HWInvert is a no-go on PB, the C BB is essentially *always* blacklisted.
if not self:canUseCBB() or not self:canHWInvert() then
logger.info("Blacklisting the C BB on this device")
if ffi.os == "Windows" then
@ -104,7 +106,7 @@ function PocketBook:init()
end
elseif ev.code == C.EVT_FOREGROUND or ev.code == C.EVT_SHOW then
tryOpenBook()
ui:setDirty('all', 'partial')
ui:setDirty('all', 'ui')
if quasiSuspended then
quasiSuspended = false
return "Resume"

Loading…
Cancel
Save