From 09588cfb531add7e1cff05bdcbc86a11a0037712 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Tue, 15 Oct 2019 10:41:58 +1300 Subject: [PATCH] 1.4.0 fixes (#260) 1.4.0 fixes --- src/SCRIPTS/BF/MSP/common.lua | 1 + src/SCRIPTS/BF/ui.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SCRIPTS/BF/MSP/common.lua b/src/SCRIPTS/BF/MSP/common.lua index 21c22572..d50b3ba0 100644 --- a/src/SCRIPTS/BF/MSP/common.lua +++ b/src/SCRIPTS/BF/MSP/common.lua @@ -129,6 +129,7 @@ function mspPollReply() while true do ret = protocol.mspPoll() if type(ret) == "table" then + mspLastReq = 0 return mspRxReq, ret else break diff --git a/src/SCRIPTS/BF/ui.lua b/src/SCRIPTS/BF/ui.lua index afe25857..02982f6a 100644 --- a/src/SCRIPTS/BF/ui.lua +++ b/src/SCRIPTS/BF/ui.lua @@ -325,10 +325,10 @@ function run_ui(event) end -- normal page viewing elseif currentState <= pageStatus.display then - if event == EVT_VIRTUAL_PREV_PAGE then + if not isTelemetryScript and event == EVT_VIRTUAL_PREV_PAGE then incPage(-1) killEvents(event) -- X10/T16 issue: pageUp is a long press - elseif event == EVT_VIRTUAL_NEXT_PAGE or event == EVT_VIRTUAL_MENU then + elseif (not isTelemetryScript and event == EVT_VIRTUAL_NEXT_PAGE) or (isTelemetryScript and event == EVT_VIRTUAL_MENU) then incPage(1) elseif event == EVT_VIRTUAL_PREV or event == EVT_VIRTUAL_PREV_REPT then incLine(-1)