CK tool also measures RTT

This commit is contained in:
Neale Pickett 2020-04-26 22:50:51 -06:00
parent 0bd790e23a
commit 56486979a8
1 changed files with 2 additions and 1 deletions

View File

@ -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))
}
}