diff --git a/module/hct.be b/module/hct.be index ebda438..87e2ae7 100644 --- a/module/hct.be +++ b/module/hct.be @@ -75,7 +75,7 @@ hct.UseDeviceName=hct_entity.UseDeviceName hct.update=tools.update_hct hct.rs=/->tasmota.cmd('restart 1') -hct.debug=hct_debug +hct.debug=hct_debugging tools.log_debug(["hct.be",constants.VERSION, "compiled OK."]) diff --git a/module/hct_config.be b/module/hct_config.be index 60f06b2..1046d69 100644 --- a/module/hct_config.be +++ b/module/hct_config.be @@ -13,9 +13,9 @@ class Config static var DEVICE_NAME static var IS_RAND_SET=false - - static def debug() - Config.IS_DEBUG=!Config.IS_DEBUG + static def debug(value) + value=value==nil?(!Config.IS_DEBUG):value + Config.IS_DEBUG=value return Config.IS_DEBUG end diff --git a/module/hct_debug.be b/module/hct_debugging.be similarity index 100% rename from module/hct_debug.be rename to module/hct_debugging.be