Make sure rotation mode is correctly read with assert
This commit is contained in:
1 parent
a809ccdf09
commit
a9c915dc30
1 file changed
+2
-2
+2
-2
@@ -70,8 +70,8 @@ function FileChooser:rotationMode()
|
||||
0
|
||||
--]]
|
||||
|
||||
orie_fd = io.open("/sys/module/eink_fb_hal_broads/parameters/bs_orientation", "r")
|
||||
updown_fd = io.open("/sys/module/eink_fb_hal_broads/parameters/bs_upside_down", "r")
|
||||
orie_fd = assert(io.open("/sys/module/eink_fb_hal_broads/parameters/bs_orientation", "r"))
|
||||
updown_fd = assert(io.open("/sys/module/eink_fb_hal_broads/parameters/bs_upside_down", "r"))
|
||||
mode = orie_fd:read() + (updown_fd:read() * 2)
|
||||
return mode
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user