From 7d4bf7924807f2892443119335f837b570802232 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 25 Nov 2023 09:18:42 -0600 Subject: [PATCH] fix up volleyball parsing --- packages/lib/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/lib/index.js b/packages/lib/index.js index 99c255a..d42b5f7 100644 --- a/packages/lib/index.js +++ b/packages/lib/index.js @@ -303,10 +303,8 @@ class Console { } const seqNum = this.currentBuffer.buffer.at(10); if (seqNum === 0x11) { - this.state.home.gamesWon = parseInt(this.currentBuffer.buffer.subarray(16, 17).toString('hex'), 10); - this.state.guest.gamesWon = parseInt(this.currentBuffer.buffer.subarray(17, 18).toString('hex'), 10); - - this.state.game = parseInt(this.currentBuffer.hex.substring(31, 32), 10); + this.state.home.gamesWon = parseInt(this.currentBuffer.hex.substring(32, 34), 10); + this.state.guest.gamesWon = parseInt(this.currentBuffer.hex.substring(34, 36), 10); } }