Fixed: Exploding a NIL value when empty settings tor the timers are used #14

This commit is contained in:
Deyan Dobromirov 2019-07-15 21:12:25 +03:00
parent 99d9da828e
commit c612f29f80
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ local gtInitLogs = {"*Init", false, 0}
------ CONFIGURE ASMLIB ------
asmlib.InitBase("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","6.547")
asmlib.SetOpVar("TOOL_VERSION","6.548")
asmlib.SetIndexes("V" , "x", "y", "z")
asmlib.SetIndexes("A" ,"pitch","yaw","roll")
asmlib.SetIndexes("WV",1,2,3)

View File

@ -1944,7 +1944,7 @@ function CreateTable(sTable,defTab,bDelete,bReload)
function self:TimerSetup(vTim)
local qtCmd = self:GetCommand()
local qtDef = self:GetDefinition()
local sTm = (vTim and tostring(vTim or "") or qtDef.Timer)
local sTm = tostring((vTim and vTim or qtDef.Timer) or "")
local tTm = GetOpVar("OPSYM_REVISION"):Explode(sTm)
tTm[1] = tostring(tTm[1] or "CQT") -- Timer mode
tTm[2] = (tonumber(tTm[2]) or 0) -- Record life