We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84763a2 commit 7a845bcCopy full SHA for 7a845bc
src/SCRIPTS/BF/features_info.lua
@@ -8,13 +8,15 @@ local isOsdSDRead = false
8
9
local lastRunTS = 0
10
local INTERVAL = 100
11
+local isInFlight = false
12
13
local returnTable = {
14
f = nil,
15
t = "",
16
}
17
18
local function processMspReply(cmd, payload, err)
19
+ isInFlight = false
20
local isOkay = not err
21
if cmd == MSP_GPS_CONFIG then
22
isGpsRead = true
@@ -45,8 +47,9 @@ local function updateFeatures()
45
47
cmd = MSP_OSD_CONFIG
46
48
returnTable.t = "Checking OSD (SD)..."
49
end
- if cmd then
50
+ if cmd and not isInFlight then
51
protocol.mspRead(cmd)
52
+ isInFlight = true
53
54
55
mspProcessTxQ()
0 commit comments