It is currently Tue 16. Apr 2024 20:24:03

All times are UTC + 1 hour





Post new topic Reply to topic  [ 2 posts ] 
  Print view Previous topic | Next topic 
Author Message
PostPosted: Mon 12. Sep 2022 21:38:23 
Offline

Joined: Mon 07. Feb 2022 19:35:40
Posts: 11
This is happening with Radiomaster Zorro and Radiomaster TX12 MK2 running EdgeTX and the Spirit 3.3.2 LUA (which is what is linked at http://manual.spirit-system.com/index.p ... stallation)

I was able to fix it by adding EVT_VIRTUAL_NEXT_PAGE and EVT_VIRTUAL_PREV_PAGE to the if statements at the end.

Code:
local function run(event)
  if event == nil then
    return 2
  elseif event == EVT_PAGE_BREAK or event == EVT_RIGHT_BREAK or event == EVT_VIRTUAL_NEXT_PAGE then
    selectPage(1)
  elseif event == EVT_PAGE_LONG or event == EVT_LEFT_BREAK or event == EVT_VIRTUAL_PREV_PAGE then
    killEvents(event);
    selectPage(-1)
  end
  fields = pages[page][1]
  local result = runFieldsPage(event)
  refreshNext()
  return result
end


I believe all that's really needed are the EVT_VIRTUAL_xxx_PAGE checks after skimming the documentation for OpenTX and EdgeTX:
https://luadoc.edgetx.org/part_iii_-_op ... ual-events
https://doc.open-tx.org/opentx-2-3-lua- ... ual-events


Top
 Profile  
 
PostPosted: Mon 19. Sep 2022 11:33:05 
Offline
Site Admin

Joined: Mon 29. Apr 2013 16:06:44
Posts: 12226
Hello,

many thanks for your message!

Please try our new integration scripts. There is direct support for RM-Zorro now.

_________________
Spirit System developer


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
skymiles_red v1.0.1 designed by Team -Programming forum-سيارات للبيع .