diff --git a/src/libplctag/NativeTagWrapper.cs b/src/libplctag/NativeTagWrapper.cs index 7eefc9e9..592fe9ad 100644 --- a/src/libplctag/NativeTagWrapper.cs +++ b/src/libplctag/NativeTagWrapper.cs @@ -175,10 +175,7 @@ public DebugLevel DebugLevel { ThrowIfAlreadyDisposed(); - if (_isInitialized) - return _debugLevel; - else - return GetDebugLevel(); + return _debugLevel; } set { @@ -536,11 +533,6 @@ private void SetDebugLevel(DebugLevel level) _native.plc_tag_set_debug_level((int)level); } - private DebugLevel GetDebugLevel() - { - return (DebugLevel)GetIntAttribute("debug"); - } - public bool GetBit(int offset) { ThrowIfAlreadyDisposed();