From 3ada96d80c7a11ed4f7db2a824378f0415177831 Mon Sep 17 00:00:00 2001 From: Hans Christian Olaussen <41271048+klutvott123@users.noreply.github.com> Date: Wed, 20 Oct 2021 19:57:22 +0200 Subject: [PATCH 1/2] Delete BF folder --- src/BF/use_tools_menu_instead_of_this.txt | 0 src/SCRIPTS/BF/PAGES/vtx.lua | 4 ++-- src/{BF/VTX => SCRIPTS/BF/VTX_TABLES}/vtx_defaults.lua | 0 src/SCRIPTS/BF/ui_init.lua | 2 +- src/SCRIPTS/BF/vtx_tables.lua | 4 ++-- 5 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 src/BF/use_tools_menu_instead_of_this.txt rename src/{BF/VTX => SCRIPTS/BF/VTX_TABLES}/vtx_defaults.lua (100%) diff --git a/src/BF/use_tools_menu_instead_of_this.txt b/src/BF/use_tools_menu_instead_of_this.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/src/SCRIPTS/BF/PAGES/vtx.lua b/src/SCRIPTS/BF/PAGES/vtx.lua index e957b225..73a035e5 100644 --- a/src/SCRIPTS/BF/PAGES/vtx.lua +++ b/src/SCRIPTS/BF/PAGES/vtx.lua @@ -13,9 +13,9 @@ local fields = {} local vtx_tables if apiVersion >= 1.042 then - vtx_tables = assert(loadScript("/BF/VTX/"..mcuId..".lua"))() + vtx_tables = assert(loadScript("VTX_TABLES/"..mcuId..".lua"))() else - vtx_tables = assert(loadScript("/BF/VTX/vtx_defaults.lua"))() + vtx_tables = assert(loadScript("VTX_TABLES/vtx_defaults.lua"))() end local deviceTable = { [1]="6705", [3]="SA", [4]="Tramp", [255]="None" } local pitModeTable = { [0]="OFF", "ON" } diff --git a/src/BF/VTX/vtx_defaults.lua b/src/SCRIPTS/BF/VTX_TABLES/vtx_defaults.lua similarity index 100% rename from src/BF/VTX/vtx_defaults.lua rename to src/SCRIPTS/BF/VTX_TABLES/vtx_defaults.lua diff --git a/src/SCRIPTS/BF/ui_init.lua b/src/SCRIPTS/BF/ui_init.lua index 6a851ad1..db7bc77f 100644 --- a/src/SCRIPTS/BF/ui_init.lua +++ b/src/SCRIPTS/BF/ui_init.lua @@ -26,7 +26,7 @@ local function init() mcuIdReceived = getMCUId.f() if mcuIdReceived then getMCUId = nil - local f = loadScript("/BF/VTX/"..mcuId..".lua") + local f = loadScript("VTX_TABLES/"..mcuId..".lua") if f and f() then vtxTablesReceived = true f = nil diff --git a/src/SCRIPTS/BF/vtx_tables.lua b/src/SCRIPTS/BF/vtx_tables.lua index 91175588..8c72e48d 100644 --- a/src/SCRIPTS/BF/vtx_tables.lua +++ b/src/SCRIPTS/BF/vtx_tables.lua @@ -82,7 +82,7 @@ local function getVtxTables() end end if vtxTablesReceived then - local f = io.open("/BF/VTX/"..mcuId..".lua", 'w') + local f = io.open("VTX_TABLES/"..mcuId..".lua", 'w') io.write(f, "return {", "\n") io.write(f, " frequencyTable = {", "\n") for i = 1, #frequencyTable do @@ -109,7 +109,7 @@ local function getVtxTables() io.write(f, powerString, "\n") io.write(f, "}", "\n") io.close(f) - assert(loadScript("/BF/VTX/"..mcuId..".lua", 'c')) + assert(loadScript("VTX_TABLES/"..mcuId..".lua", 'c')) end mspProcessTxQ() processMspReply(mspPollReply()) From 4f6ed1fe22d7d7b7fe346557d922b65b09161683 Mon Sep 17 00:00:00 2001 From: Hans Christian Olaussen <41271048+klutvott123@users.noreply.github.com> Date: Wed, 20 Oct 2021 19:58:05 +0200 Subject: [PATCH 2/2] Delete telemetry version --- src/SCRIPTS/TELEMETRY/bf.lua | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 src/SCRIPTS/TELEMETRY/bf.lua diff --git a/src/SCRIPTS/TELEMETRY/bf.lua b/src/SCRIPTS/TELEMETRY/bf.lua deleted file mode 100644 index e1e7a693..00000000 --- a/src/SCRIPTS/TELEMETRY/bf.lua +++ /dev/null @@ -1,6 +0,0 @@ -local function run(event) - lcd.clear() - lcd.drawText(2, 2, "Use TOOLS menu") -end - -return { run=run }