--- a/svghmi/gen_index_xhtml.xslt Wed Jan 19 11:41:04 2022 +0100
+++ b/svghmi/gen_index_xhtml.xslt Wed Jan 19 11:41:37 2022 +0100
@@ -1459,8 +1459,6 @@
<xsl:text> this.element = id(elt_id);
- <xsl:text> if(freq !== undefined) this.frequency = freq;
<xsl:text> this.args = args;
<xsl:text> this.indexes = indexes;
@@ -1477,6 +1475,8 @@
<xsl:text> this.bound_unhinibit = this.unhinibit.bind(this);
+ <xsl:text> this.forced_frequency = freq; @@ -2402,7 +2402,7 @@
<xsl:text>console.log("Entering state </xsl:text>
<xsl:value-of select="@name"/>
+ <xsl:text>", this.frequency); <xsl:apply-templates mode="actions" select="*"/>
@@ -8237,6 +8237,10 @@
+ <xsl:text> if(widget.forced_frequency !== undefined) + <xsl:text> widget.frequency = widget.forced_frequency; @@ -8801,8 +8805,6 @@
<xsl:text>function send_hmi_value(index, value) {
- <xsl:text> console.log("send_hmi_value("+index+", "+value+")")
<xsl:text> if(index > last_remote_index){
<xsl:text> updates.set(index, value);
@@ -8851,7 +8853,9 @@
<xsl:text>function apply_hmi_value(index, new_val) {
- <xsl:text> console.log("apply_hmi_value("+index+", "+new_val+")")
+ <xsl:text> // Similarly to previous comment, taking decision to update based + <xsl:text> // on cache content is bad and can lead to inconsistency <xsl:text> /*let old_val = cache[index];*/