From 513aa67875bb091d8b1e6a40079c9d030e89596b Mon Sep 17 00:00:00 2001 From: Lewis Moten Date: Thu, 9 May 2024 14:42:03 -0400 Subject: [PATCH] We are comparing the transfer bits themselves --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 910f1b9..ec124fd 100644 --- a/index.js +++ b/index.js @@ -1874,8 +1874,8 @@ function drawChannelData() { const receivedBit = segmentBits[channelIndex]; // identify expected bit const bitIndex = channelIndex + (segmentIndex * channelCount); - if(bitIndex >= SENT_ENCODED_BITS.length) break; - const expectedBit = SENT_ENCODED_BITS[bitIndex]; + if(bitIndex >= SENT_TRANSFER_BITS.length) break; + const expectedBit = SENT_TRANSFER_BITS[bitIndex]; drawChannelSegmentBackground( ctx, @@ -2215,7 +2215,7 @@ function handleReceivedChannelGraphClick(e) { } }); - const expectedBit = SENT_ENCODED_BITS[bitIndex]; + const expectedBit = SENT_TRANSFER_BITS[bitIndex]; const receivedBit = packetReceivedBits[bitIndex]; addLowHigh('Expected Bit', expectedBit === 1 ? '' : '0', expectedBit === 1 ? '1' : '') addLowHigh('Received Bit', receivedBit === 1 ? '' : '0', receivedBit === 1 ? '1' : '')