diff -r ee3b84d09ccf -r c2c366964913 svghmi/widget_button.ysl2 --- a/svghmi/widget_button.ysl2 Sun Feb 13 21:01:27 2022 +0100 +++ b/svghmi/widget_button.ysl2 Sun Feb 13 21:05:19 2022 +0100 @@ -146,7 +146,7 @@ } template "state", mode="actions" { | «@name»_action(){ - | console.log("Entering state «@name»"); + // | console.log("Entering state «@name»", this.frequency); apply "*", mode="actions"; | } } @@ -163,7 +163,6 @@ function "generated_button_class" { param "fsm"; - | frequency = 5; | display = "inactive"; | state = "init"; @@ -202,6 +201,7 @@ widget_class("Button"){ + | frequency = 5; const "fsm","exsl:node-set($_button_fsm)"; call "generated_button_class" with "fsm", "$fsm"; } @@ -211,6 +211,7 @@ } widget_class("PushButton"){ + | frequency = 20; const "fsm","exsl:node-set($_push_button_fsm)"; call "generated_button_class" with "fsm", "$fsm"; }