From c9c89ef56ddbd4c26bdd939842e6fcc03fd18c16 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Tue, 18 Sep 2012 10:07:30 +0100 Subject: [PATCH] Use the proper way to detect emulation. --- screen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.lua b/screen.lua index 621d84926..f79bc2708 100644 --- a/screen.lua +++ b/screen.lua @@ -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"))