AIRBOSS & BASE

BASE:
- Fixed bug that tracing is always ON

AIRBOSS v1.1.0
- Added support for P-3C Orion and C-2A Greyhound (AI) from MAM
This commit is contained in:
Frank
2019-11-23 20:36:45 +01:00
parent e67b819df9
commit 14de37f390
2 changed files with 21 additions and 5 deletions

View File

@@ -925,7 +925,13 @@ end
-- -- Switch the tracing Off
-- BASE:TraceOnOff( false )
function BASE:TraceOnOff( TraceOnOff )
_TraceOnOff = TraceOnOff or true
if TraceOnOff==false then
self:I( "Tracing in MOOSE is OFF" )
_TraceOnOff = false
else
self:I( "Tracing in MOOSE is ON" )
_TraceOnOff = true
end
end
@@ -954,7 +960,11 @@ end
-- @param #boolean TraceAll true = trace all methods in MOOSE.
function BASE:TraceAll( TraceAll )
_TraceAll = TraceAll or true
if TraceAll==false then
_TraceAll=false
else
_TraceAll = true
end
if _TraceAll then
self:I( "Tracing all methods in MOOSE " )