From 56486979a87999ab118c6526bbec13134f82b273 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sun, 26 Apr 2020 22:50:51 -0600 Subject: [PATCH] CK tool also measures RTT --- static/vail.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/vail.js b/static/vail.js index 6b5d836..c46a5a2 100644 --- a/static/vail.js +++ b/static/vail.js @@ -328,7 +328,7 @@ class Vail { let tx = true for (let duration of durations) { duration = Number(duration) - if (tx) { + if (tx && (duration > 0)) { this.buzzer.BuzzDuration(false, adjustedTxTime, duration) this.addRxDuration(duration) } @@ -397,6 +397,7 @@ class Vail { s * 3, dah, s, dit, s, dah ] + this.wsSend(Date.now(), 0) // Get round-trip time this.socket.send(JSON.stringify(msg)) } }