We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58ac294 commit 629b776Copy full SHA for 629b776
1 file changed
KISSdata.lua
@@ -6,6 +6,10 @@ local blnMenuMode = 0
6
local mahTarget = 900
7
local mahAlertPerc = 10
8
9
+-- OpenTX 2.0 - Percent Unit = 8 // OpenTx 2.1 - Percent Unit = 13
10
+-- see: https://opentx.gitbooks.io/opentx-lua-reference-guide/content/general/playNumber.html
11
+local percentUnit = 13
12
+
13
local lastMahAlert = 0
14
15
@@ -33,7 +37,7 @@ end
33
37
34
38
--MahAlert and Logging of last Value Played
35
39
local function playMahPerc(percVal)
36
- playNumber(percVal,8)
40
+ playNumber(percVal,percentUnit)
41
lastMahAlert = percVal -- Set our lastMahAlert
42
end
43
0 commit comments