Kindle Scribe: fix elseif for orientation code (#12663)

Fixes #12662
This commit is contained in:
mergen3107
2024-10-20 12:58:34 -04:00
committed by GitHub
parent 54e33d27ea
commit ee17b44b58

View File

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