Use the proper way to detect emulation.

This commit is contained in:
Tigran Aivazian
2012-09-18 10:07:30 +01:00
parent 55bd3f1bd3
commit c9c89ef56d

View File

@@ -67,7 +67,7 @@ function Screen:screenRotate(orien)
end
function Screen:updateRotationMode()
if KEY_FW_DOWN == 116 then -- in EMU mode always set to 0
if util.isEmulated() == 1 then -- in EMU mode always set to 0
self.cur_rotation_mode = 0
else
orie_fd = assert(io.open("/sys/module/eink_fb_hal_broads/parameters/bs_orientation", "r"))