Skip to content

Commit

Permalink
Refine debug function, fix it being overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
ejohb committed Apr 14, 2023
1 parent dc1bccb commit fa82b7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion module/hct.be
Original file line number Diff line number Diff line change
Expand Up @@ -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."])

Expand Down
6 changes: 3 additions & 3 deletions module/hct_config.be
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.

0 comments on commit fa82b7b

Please sign in to comment.