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

Fixes #11743
This commit is contained in:
mergen3107
2024-05-14 04:31:14 -04:00
committed by GitHub
parent 25d29aca4a
commit 8a316f928a

View File

@@ -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