Kindle: remove separate L and R orientations (#11780)

Fixes #11743
reviewable/pr11819/r1
mergen3107 3 weeks ago committed by GitHub
parent 25d29aca4a
commit 8a316f928a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1399,14 +1399,10 @@ function KindleScribe:init()
logger.dbg("orientation_code =", orientation_code)
local rotation_mode = 0
if orientation_code then
if orientation_code == "U" then
if orientation_code == "U" or "L" then
rotation_mode = self.screen.DEVICE_ROTATED_UPRIGHT
elseif orientation_code == "R" then
rotation_mode = self.screen.DEVICE_ROTATED_CLOCKWISE
elseif orientation_code == "D" then
elseif orientation_code == "D" or "R" then
rotation_mode = self.screen.DEVICE_ROTATED_UPSIDE_DOWN
elseif orientation_code == "L" then
rotation_mode = self.screen.DEVICE_ROTATED_COUNTER_CLOCKWISE
end
end
if rotation_mode > 0 then

Loading…
Cancel
Save