svghmi/svghmi.js
changeset 3645 82882a9f91ce
parent 3625 bb1eff4091ab
child 3648 ff42600fddd7
--- 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