From a2518c1156b473d3aafab82459e4a4fb05d0f8e1 Mon Sep 17 00:00:00 2001 From: 3djc Date: Thu, 26 Apr 2018 09:57:16 +0200 Subject: [PATCH] fix sxr xlite --- radio/sdcard/taranis-x7/SxR/SxR.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/sdcard/taranis-x7/SxR/SxR.lua b/radio/sdcard/taranis-x7/SxR/SxR.lua index ee6891c9f..ba0e94272 100644 --- a/radio/sdcard/taranis-x7/SxR/SxR.lua +++ b/radio/sdcard/taranis-x7/SxR/SxR.lua @@ -262,9 +262,9 @@ local function run(event) if event == nil then error("Cannot be run as a model script!") return 2 - elseif event == EVT_PAGE_BREAK or event==EVT_RIGHT_BREAK then + elseif event == EVT_PAGE_BREAK or (edit == false and event==EVT_RIGHT_BREAK) then selectPage(1) - elseif event == EVT_PAGE_LONG or event==EVT_LEFT_BREAK then + elseif event == EVT_PAGE_LONG or (edit == false and event==EVT_LEFT_BREAK) then killEvents(event); selectPage(-1) end