SVGHMI: cosmetic fixes
authorEdouard Tisserant
Wed, 12 Oct 2022 11:56:04 +0200
changeset 3645 82882a9f91ce
parent 3644 ecf43c7ac1fb
child 3646 db87744d8900
SVGHMI: cosmetic fixes
svghmi/svghmi.js
--- a/svghmi/svghmi.js	Wed Oct 12 11:09:33 2022 +0200
+++ b/svghmi/svghmi.js	Wed Oct 12 11:56:04 2022 +0200
@@ -23,7 +23,7 @@
 // Open WebSocket to relative "/ws" address
 var has_watchdog = window.location.hash == "#watchdog";
 
-var ws_url = 
+var ws_url =
     window.location.href.replace(/^http(s?:\/\/[^\/]*)\/.*$/, 'ws$1/ws')
     + '?mode=' + (has_watchdog ? "watchdog" : "multiclient");
 
@@ -148,8 +148,8 @@
 
 const typedarray_types = {
     INT: (number) => new Int16Array([number]),
-    BOOL: (truth) => new Int16Array([truth]),
-    NODE: (truth) => new Int16Array([truth]),
+    BOOL: (truth) => new Int8Array([truth]),
+    NODE: (truth) => new Int8Array([truth]),
     REAL: (number) => new Float32Array([number]),
     STRING: (str) => {
         // beremiz default string max size is 128