aboutsummaryrefslogtreecommitdiffstats
path: root/web/protocol.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/protocol.js')
-rw-r--r--web/protocol.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/protocol.js b/web/protocol.js
index 9c93f8e..5454739 100644
--- a/web/protocol.js
+++ b/web/protocol.js
@@ -70,14 +70,14 @@ export class Message {
}
getDataArray() {
- return new Uint8Array(this.buf, 4, this.buf.byteLength - 6);
+ return new Uint8Array(this.buf, 4, this.buf.byteLength - 6);
}
toString() {
- const address = lookup(ADDR, this.address) ?? "????";
- const func = lookup(FUNC, this.func) ?? "?_??";
- const data = this.getDataArray();
- return `to ${address}: ${func.substr(2)} [${data}]`;
+ const address = lookup(ADDR, this.address) ?? "????";
+ const func = lookup(FUNC, this.func) ?? "?_??";
+ const data = this.getDataArray();
+ return `to ${address}: ${func.substr(2)} [${data}]`;
}
static from8(addr, func, data) {