svghmi/svghmi.js
branchsvghmi
changeset 2806 7d0e81cdedb0
parent 2805 e521e0d133d5
child 2808 dc78ffa5253d
--- a/svghmi/svghmi.js	Sun Oct 27 21:38:10 2019 +0100
+++ b/svghmi/svghmi.js	Sun Oct 27 22:28:51 2019 +0100
@@ -134,10 +134,9 @@
             subscriptions[index] = new_period;
             delta.push(
                 new Uint8Array([2]), /* subscribe = 2 */
-                new Uint32Array([index]), 
+                new Uint32Array([index]),
                 new Uint16Array([new_period]));
         }
-        
     }
     send_blob(delta);
 };
@@ -171,7 +170,8 @@
         break;
     }
     if(new_val != undefined && old_val != new_val)
-        return send_hmi_value(index, new_val);
+        send_hmi_value(index, new_val);
+    return new_val;
 }
 
 var current_page;