diff -r 390acff12755 -r 64e6f73b9859 svghmi/gen_index_xhtml.xslt --- a/svghmi/gen_index_xhtml.xslt Tue Oct 22 17:06:31 2019 +0200 +++ b/svghmi/gen_index_xhtml.xslt Tue Oct 22 22:58:55 2019 +0200 @@ -586,13 +586,13 @@ subscriptions[index] = new_period; - delta.push(new Blob([ + delta.push( new Uint8Array([2]), /* subscribe = 2 */ new Uint32Array([index]), - new Uint16Array([new_period])])); + new Uint16Array([new_period])); } @@ -608,17 +608,17 @@ function send_hmi_value(index, value) { - iectype = hmitree_types[index]; - - jstype = typedarray_types[iectype]; + let iectype = hmitree_types[index]; + + let jstype = typedarray_types[iectype]; send_blob([ new Uint8Array([0]), /* setval = 0 */ - new jstype([value]) - - ]); + new Uint32Array([index]), + + new jstype([value])]);